X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Ffs.h;h=742a535b5f010675256f4a855df0509d3449142a;hb=beeb57f0a66658aacad3f12f1a31e65f5d22e46d;hp=7601b0343bcd5f57ec649671c376a8b9531f36bc;hpb=8b77ea90a7055f1da2931baca03d102dfa08aa36;p=oweals%2Fu-boot.git diff --git a/include/fs.h b/include/fs.h index 7601b0343b..742a535b5f 100644 --- a/include/fs.h +++ b/include/fs.h @@ -37,6 +37,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 *