1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

fs: fat: support mkdir

In this patch, mkdir support is added to FAT file system.
A newly created directory contains only "." and ".." entries.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
AKASHI Takahiro
2018-09-11 15:59:10 +09:00
committed by Alexander Graf
parent 3a10e07234
commit 31a18d570d
3 changed files with 139 additions and 1 deletions

View File

@@ -164,14 +164,15 @@ static struct fstype_info fstypes[] = {
.read = fat_read_file,
#ifdef CONFIG_FAT_WRITE
.write = file_fat_write,
.mkdir = fat_mkdir,
#else
.write = fs_write_unsupported,
.mkdir = fs_mkdir_unsupported,
#endif
.uuid = fs_uuid_unsupported,
.opendir = fat_opendir,
.readdir = fat_readdir,
.closedir = fat_closedir,
.mkdir = fs_mkdir_unsupported,
},
#endif
#ifdef CONFIG_FS_EXT4