fs: make it possible to read the filesystem UUID
[oweals/u-boot.git] / include / fs.h
index 06a45f2788323b5d0fef4debf677bcf942cebe4d..491c60a7cb909114f5b63064157d1cde400dd02b 100644 (file)
@@ -93,4 +93,11 @@ int file_exists(const char *dev_type, const char *dev_part, const char *file,
 int do_save(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
                int fstype);
 
+/*
+ * Determine the UUID of the specified filesystem and print it. Optionally it is
+ * possible to store the UUID directly in env.
+ */
+int do_fs_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
+               int fstype);
+
 #endif /* _FS_H */