mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
08c51fff30
commit
64f49eb7d0
2 changed files with 8 additions and 1 deletions
2
fs/fs.c
2
fs/fs.c
|
@ -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);
|
||||
|
||||
|
|
|
@ -37,6 +37,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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue