summaryrefslogtreecommitdiff
path: root/include/fs.h
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2019-10-07 08:59:37 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-10-17 20:19:56 +0300
commitb7cd95627baac05b7023b014c802be309be636a0 (patch)
tree1414d192e1f496404e1d04d6c7496af48f66fa3b /include/fs.h
parent185aed7855573214794b13f20e597d36c6dc5760 (diff)
downloadu-boot-b7cd95627baac05b7023b014c802be309be636a0.tar.xz
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.h10
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