]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Detail: report new-layout for RAID6 arrays
authorNeilBrown <neilb@suse.de>
Wed, 28 Oct 2009 23:02:24 +0000 (10:02 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 28 Oct 2009 23:02:24 +0000 (10:02 +1100)
We were only reporting it for RAID5 and RAID10.

Signed-off-by: NeilBrown <neilb@suse.de>
Detail.c

index e2cf028a70870e2ef23e54df0dd54eae2139ee7c..0e47a05ac240c4dc1f6c4d6f8f8bbd93169a3ffc 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -382,6 +382,11 @@ This is pretty boring
                                        printf("     New Layout : %s\n",
                                               c?c:"-unknown-");
                                }
+                               if (info.new_level == 6) {
+                                       char *c = map_num(r6layout, info.new_layout);
+                                       printf("     New Layout : %s\n",
+                                              c?c:"-unknown-");
+                               }
                                if (info.new_level == 10) {
                                        printf("     New Layout : near=%d, %s=%d\n",
                                               info.new_layout&255,