]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.h
Use uuid as /dev name when assembling array of uncertain origin.
[thirdparty/mdadm.git] / mdadm.h
diff --git a/mdadm.h b/mdadm.h
index 5bc41e81d3bbd8fc6b3ef46d3a7b4d13028a74a4..f70e361b612fef65475ee1e98d3d000581bd09b9 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
@@ -446,8 +446,7 @@ extern struct superswitch {
        void (*getinfo_super)(struct supertype *st, struct mdinfo *info);
 
        /* Check if the given metadata is flagged as belonging to "this"
-        * host.  For arrays that don't determine a minor-number, this
-        * can always be true (??)
+        * host.  0 for 'no', 1 for 'yes', -1 for "Don't record homehost"
         */
        int (*match_home)(struct supertype *st, char *homehost);
 
@@ -764,6 +763,8 @@ extern int match_oneof(char *devices, char *devname);
 extern void uuid_from_super(int uuid[4], mdp_super_t *super);
 extern int same_uuid(int a[4], int b[4], int swapuuid);
 extern void copy_uuid(void *a, int b[4], int swapuuid);
+extern char *fname_from_uuid(struct supertype *st,
+                            struct mdinfo *info, char *buf);
 extern unsigned long calc_csum(void *super, int bytes);
 extern int enough(int level, int raid_disks, int layout, int clean,
                   char *avail, int avail_disks);