aboutsummaryrefslogtreecommitdiff
path: root/include/fs.h
diff options
context:
space:
mode:
authorAKASHI Takahiro2018-09-11 15:59:08 +0900
committerAlexander Graf2018-09-23 21:55:29 +0200
commite7074cffb8dccf862260e15b8de5297891c917a0 (patch)
tree5e70cd10b2780cb29c5e858a5587793031a484d1 /include/fs.h
parentcda40b2aea39ec05683a2895f31c630ef2ce5131 (diff)
fs: add mkdir interface
"mkdir" interface is added to file operations. This is a preparatory change as mkdir support for FAT file system will be added in next patch. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index 163da103b47..fbaee154dd0 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -156,6 +156,14 @@ struct fs_dirent *fs_readdir(struct fs_dir_stream *dirs);
void fs_closedir(struct fs_dir_stream *dirs);
/*
+ * fs_mkdir - Create a directory
+ *
+ * @filename: Name of directory to create
+ * @return 0 on success, -1 on error conditions
+ */
+int fs_mkdir(const char *filename);
+
+/*
* Common implementation for various filesystem commands, optionally limited
* to a specific filesystem type via the fstype parameter.
*/
@@ -169,6 +177,8 @@ int file_exists(const char *dev_type, const char *dev_part, const char *file,
int fstype);
int do_save(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
int fstype);
+int do_mkdir(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
+ int fstype);
/*
* Determine the UUID of the specified filesystem and print it. Optionally it is