diff options
-rw-r--r-- | fs/fs.c | 2 | ||||
-rw-r--r-- | include/fs.h | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -389,7 +389,7 @@ int fs_set_blk_dev_with_part(struct blk_desc *desc, int part) return -1; } -static void fs_close(void) +void fs_close(void) { struct fstype_info *info = fs_get_info(fs_type); diff --git a/include/fs.h b/include/fs.h index 7601b0343b..5a1244d57f 100644 --- a/include/fs.h +++ b/include/fs.h @@ -38,6 +38,13 @@ 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 + * + * Should be paired with either fs_set_blk_dev() or fs_set_dev_with_part() + */ +void fs_close(void); + +/** * fs_get_type_name() - Get type of current filesystem * * Return: Pointer to filesystem name |