diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2019-10-07 14:59:37 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-10-17 19:19:56 +0200 |
commit | b7cd95627baac05b7023b014c802be309be636a0 (patch) | |
tree | 1414d192e1f496404e1d04d6c7496af48f66fa3b /include/fs.h | |
parent | 185aed7855573214794b13f20e597d36c6dc5760 (diff) |
fs: add fs_get_type() for current filesystem type
This function is a variant of fs_get_type_name() and returns a filesystem
type with which the current device is associated.
We don't want to export fs_type variable directly because we have to take
care of it consistently within fs.c.
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.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h index 247e954053..742a535b5f 100644 --- a/include/fs.h +++ b/include/fs.h @@ -50,6 +50,16 @@ int fs_set_blk_dev_with_part(struct blk_desc *desc, int part); 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 |