summaryrefslogtreecommitdiff
path: root/include/squashfs.h
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@posteo.net>2020-11-03 12:11:26 +0100
committerTom Rini <trini@konsulko.com>2020-11-19 09:45:49 -0500
commitdd4866b43754b18f0c06672e341d93e16b8bf674 (patch)
treec551b408e9b714348c1f4f34b14a23d4641021b8 /include/squashfs.h
parent21b1b3bad58b50e5464b1bf016e7c96bf18ddb8d (diff)
downloadu-boot-dd4866b43754b18f0c06672e341d93e16b8bf674.tar.gz
u-boot-dd4866b43754b18f0c06672e341d93e16b8bf674.tar.bz2
u-boot-dd4866b43754b18f0c06672e341d93e16b8bf674.zip
fs/squashfs: implement exists() function
This permits to find a file and use the distro_bootcmd Reviewed-by: Joao Marcos Costa <jmcosta944@gmail.com> Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
Diffstat (limited to 'include/squashfs.h')
-rw-r--r--include/squashfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/squashfs.h b/include/squashfs.h
index 819cf8c2da..7489eefa1f 100644
--- a/include/squashfs.h
+++ b/include/squashfs.h
@@ -19,6 +19,7 @@ int sqfs_probe(struct blk_desc *fs_dev_desc,
int sqfs_read(const char *filename, void *buf, loff_t offset,
loff_t len, loff_t *actread);
int sqfs_size(const char *filename, loff_t *size);
+int sqfs_exists(const char *filename);
void sqfs_close(void);
void sqfs_closedir(struct fs_dir_stream *dirs);