aboutsummaryrefslogtreecommitdiff
path: root/include/fs.h
diff options
context:
space:
mode:
authorSjoerd Simons2015-01-05 18:13:36 +0100
committerTom Rini2015-01-29 13:36:54 -0500
commit1a1ad8e0903ec916d1e3ef8c18fa335d765a4342 (patch)
treebefa1ea03b3cc9666d36ccdd96ebb90ddf6c2aa3 /include/fs.h
parent2af13d6b6265a6700c4f65597410b769895024bf (diff)
fs: Add command to retrieve the filesystem type
New command to determine the filesystem type of a given partition. Optionally stores the filesystem type in a environment variable. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index ffb6ce7ada6..fd1e4ab1c0f 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -109,4 +109,10 @@ int do_save(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
int do_fs_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
int fstype);
+/*
+ * Determine the type of the specified filesystem and print it. Optionally it is
+ * possible to store the type directly in env.
+ */
+int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+
#endif /* _FS_H */