NeilBrown: Detail: report new-layout for RAID6 arrays

Martin F. Krafft madduck at alioth.debian.org
Wed Jan 27 02:01:12 UTC 2010


Module: mdadm
Branch: build
Commit: dab54dcb049952be8fa7b1058a4557671c73be02
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=dab54dcb049952be8fa7b1058a4557671c73be02

Author: NeilBrown <neilb at suse.de>
Date:   Thu Oct 29 10:02:24 2009 +1100

Detail: report new-layout for RAID6 arrays

We were only reporting it for RAID5 and RAID10.

Signed-off-by: NeilBrown <neilb at suse.de>

---

 Detail.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/Detail.c b/Detail.c
index e2cf028..0e47a05 100644
--- 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,




More information about the pkg-mdadm-commits mailing list