summaryrefslogtreecommitdiff
path: root/include/fs.h
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2019-10-07 14:59:35 +0900
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-10-17 19:19:55 +0200
commit64f49eb7d0697b73fa271a69832069e591c07acc (patch)
tree44b0147f448f3a66d60309d11c7cf71f8c2d567f /include/fs.h
parent08c51fff30cca0e834a4819a9d9bb684a919fa7e (diff)
downloadu-boot-64f49eb7d0697b73fa271a69832069e591c07acc.tar.gz
u-boot-64f49eb7d0697b73fa271a69832069e591c07acc.tar.bz2
u-boot-64f49eb7d0697b73fa271a69832069e591c07acc.zip
fs: export fs_close()
fs_close() closes the connection to a file system which opened with either fs_set_blk_dev() or fs_set_dev_with_part(). Many file system functions implicitly call fs_close(), e.g. fs_closedir(), fs_exist(), fs_ln(), fs_ls(), fs_mkdir(), fs_read(), fs_size(), fs_write() and fs_unlink(). So just export it. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h7
1 files changed, 7 insertions, 0 deletions
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