diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/fs.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h index 7601b0343bc..742a535b5f0 100644 --- a/include/fs.h +++ b/include/fs.h @@ -38,6 +38,28 @@ int fs_set_blk_dev(const char *ifname, const char *dev_part_str, int fstype); int fs_set_blk_dev_with_part(struct blk_desc *desc, int part); /** + * fs_close() - Unset current block device and partition + * + * fs_close() closes the connection to a file system opened with either + * fs_set_blk_dev() or fs_set_dev_with_part(). + * + * Many file functions implicitly call fs_close(), e.g. fs_closedir(), + * fs_exist(), fs_ln(), fs_ls(), fs_mkdir(), fs_read(), fs_size(), fs_write(), + * fs_unlink(). + */ +void fs_close(void); + +/** + * fs_get_type() - Get type of current filesystem + * + * Return: filesystem type + * + * Returns filesystem type representing the current filesystem, or + * FS_TYPE_ANY for any unrecognised filesystem. + */ +int fs_get_type(void); + +/** * fs_get_type_name() - Get type of current filesystem * * Return: Pointer to filesystem name |