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>
This commit is contained in:
Stephen Warren
2014-02-03 13:21:10 -07:00
committed by Tom Rini
parent 55af5c9313
commit b7b5f3195f
3 changed files with 16 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ static struct fstype_info fstypes[] = {
.probe = fat_set_blk_dev,
.close = fat_close,
.ls = file_fat_ls,
.exists = fs_exists_unsupported,
.exists = fat_exists,
.read = fat_read_file,
.write = fs_write_unsupported,
},