]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.h
Report uuid in --detail --brief for ddf and intel
[thirdparty/mdadm.git] / mdadm.h
diff --git a/mdadm.h b/mdadm.h
index a1bd77f2d6c6c6e76913555e302ab4d3704de929..f327020726fa570d32393ab60d2f2671a4eca75f 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);
 
@@ -587,6 +586,12 @@ struct metadata_update {
  * metadata read in or created is stored in 'sb' and 'info'.
  * There are also fields used by mdmon to track containers.
  *
+ * A supertype may refer to:
+ *   Just an array, possibly in a container
+ *   A container, not identifying any particular array
+ *   Info read from just one device, not yet fully describing the array/container.
+ *
+ *
  * A supertype is created by:
  *   super_by_fd
  *   guess_super
@@ -600,6 +605,8 @@ struct supertype {
        char subarray[32];      /* name of array inside container */
        void *sb;
        void *info;
+       int loaded_container;   /* Set if load_super found a container,
+                                * not just one device */
 
        struct metadata_update *updates;
        struct metadata_update **update_tail;
@@ -756,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, char sep);
 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);