summaryrefslogtreecommitdiffstats
path: root/include/fs.h
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2015-01-05 18:13:36 +0100
committerTom Rini <trini@ti.com>2015-01-29 13:36:54 -0500
commit1a1ad8e0903ec916d1e3ef8c18fa335d765a4342 (patch)
treebefa1ea03b3cc9666d36ccdd96ebb90ddf6c2aa3 /include/fs.h
parent2af13d6b6265a6700c4f65597410b769895024bf (diff)
downloadblackbird-obmc-uboot-1a1ad8e0903ec916d1e3ef8c18fa335d765a4342.tar.gz
blackbird-obmc-uboot-1a1ad8e0903ec916d1e3ef8c18fa335d765a4342.zip
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 ffb6ce7ada..fd1e4ab1c0 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 */
OpenPOWER on IntegriCloud