]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super0.c
Fix assembling of raid10 in the face of missing devices.
[thirdparty/mdadm.git] / super0.c
index ffa5cf7f5d2a7d7f77d6f3c8c07fd5172fbed5ef..916db5425b6ebfe63405c8fd57dcf098a90df14b 100644 (file)
--- a/super0.c
+++ b/super0.c
@@ -131,6 +131,10 @@ static void examine_super0(void *sbv)
                c = map_num(r5layout, sb->layout);
                printf("         Layout : %s\n", c?c:"-unknown-");
        }
+       if (sb->level == 10) {
+               printf("         Layout : near=%d, far=%d\n",
+                      sb->layout&255, (sb->layout>>8)&255);
+       }
        switch(sb->level) {
        case 0:
        case 4:
@@ -234,6 +238,7 @@ static void getinfo_super0(struct mdinfo *info, mddev_ident_t ident, void *sbv)
        info->array.patch_version = sb->patch_version;
        info->array.raid_disks = sb->raid_disks;
        info->array.level = sb->level;
+       info->array.layout = sb->layout;
        info->array.md_minor = sb->md_minor;
        info->array.ctime = sb->ctime;