From 31a18d570d968a01582bea900002a86d1c9e17e6 Mon Sep 17 00:00:00 2001 From: AKASHI Takahiro Date: Tue, 11 Sep 2018 15:59:10 +0900 Subject: 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 Signed-off-by: Alexander Graf --- include/fat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/fat.h') diff --git a/include/fat.h b/include/fat.h index a236451add..0fe3eaa8f7 100644 --- a/include/fat.h +++ b/include/fat.h @@ -203,5 +203,6 @@ int fat_read_file(const char *filename, void *buf, loff_t offset, loff_t len, int fat_opendir(const char *filename, struct fs_dir_stream **dirsp); int fat_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp); void fat_closedir(struct fs_dir_stream *dirs); +int fat_mkdir(const char *dirname); void fat_close(void); #endif /* _FAT_H_ */ -- cgit v1.2.3