]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super0.c
Document this...
[thirdparty/mdadm.git] / super0.c
index 303ed889b60c326ee780135179e4ef1ce786918e..7e1b58d9a143ea41408a029b9910bea66ad5dd3d 100644 (file)
--- a/super0.c
+++ b/super0.c
@@ -52,6 +52,7 @@ static unsigned long calc_sb0_csum(mdp_super_t *super)
        return newcsum;
 }
 
+#ifndef MDASSEMBLE
 static void examine_super0(void *sbv)
 {
        mdp_super_t *sb = sbv;
@@ -170,7 +171,7 @@ static void brief_detail_super0(void *sbv)
        else
                printf("%08x", sb->set_uuid0);
 }
-
+#endif
 static void uuid_from_super0(int uuid[4], void * sbv)
 {
        mdp_super_t *super = sbv;
@@ -204,6 +205,7 @@ static void getinfo_super0(struct mdinfo *info, void *sbv)
        info->disk.major = sb->this_disk.major;
        info->disk.minor = sb->this_disk.minor;
        info->disk.raid_disk = sb->this_disk.raid_disk;
+       info->disk.number = sb->this_disk.number;
 
        info->events = md_event(sb);
 
@@ -743,10 +745,12 @@ int write_bitmap0(struct supertype *st, int fd, void *sbv)
        
 
 struct superswitch super0 = {
+#ifndef MDASSEMBLE
        .examine_super = examine_super0,
        .brief_examine_super = brief_examine_super0,
        .detail_super = detail_super0,
        .brief_detail_super = brief_detail_super0,
+#endif
        .uuid_from_super = uuid_from_super0,
        .getinfo_super = getinfo_super0,
        .update_super = update_super0,