]> git.sur5r.net Git - u-boot/blobdiff - fs/fat/fat.c
kbuild: refactor some makefiles
[u-boot] / fs / fat / fat.c
index 54f42eae0d05eec8d456bde67d2f52122d23d369..561921fa2d364e548629fe8152cb953861699b3f 100644 (file)
@@ -1243,6 +1243,11 @@ int fat_exists(const char *filename)
        return sz >= 0;
 }
 
+int fat_size(const char *filename)
+{
+       return do_fat_read_at(filename, 0, NULL, 0, LS_NO, 1);
+}
+
 long file_fat_read_at(const char *filename, unsigned long pos, void *buffer,
                      unsigned long maxsize)
 {