summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-02-03 13:21:10 -0700
committerTom Rini <trini@ti.com>2014-02-19 09:47:34 -0500
commitb7b5f3195fa5a31ab1505e0c87054dc6dc71627b (patch)
tree575752ba9711f80028817ee6ac1efd2f404f4452 /include
parent55af5c9313607f3b6acba2fd915b263ef6a61dd4 (diff)
downloadu-boot-imx-b7b5f3195fa5a31ab1505e0c87054dc6dc71627b.zip
u-boot-imx-b7b5f3195fa5a31ab1505e0c87054dc6dc71627b.tar.gz
u-boot-imx-b7b5f3195fa5a31ab1505e0c87054dc6dc71627b.tar.bz2
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.h1
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);