diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-02-03 20:21:10 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-02-19 14:47:34 (GMT) |
commit | b7b5f3195fa5a31ab1505e0c87054dc6dc71627b (patch) | |
tree | 575752ba9711f80028817ee6ac1efd2f404f4452 /include | |
parent | 55af5c9313607f3b6acba2fd915b263ef6a61dd4 (diff) | |
download | u-boot-b7b5f3195fa5a31ab1505e0c87054dc6dc71627b.tar.xz |
fat: implement exists() for FAT fs
This hooks into the generic "file exists" support added in an earlier
patch, and provides an implementation for the FAT filesystem.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/fat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fat.h b/include/fat.h index 2c951e7..c8eb7cc 100644 --- a/include/fat.h +++ b/include/fat.h @@ -188,6 +188,7 @@ file_read_func file_fat_read; int file_cd(const char *path); int file_fat_detectfs(void); int file_fat_ls(const char *dir); +int fat_exists(const char *filename); long file_fat_read_at(const char *filename, unsigned long pos, void *buffer, unsigned long maxsize); long file_fat_read(const char *filename, void *buffer, unsigned long maxsize); |