Blame SOURCES/mdadm-3.2.6-mdmon-always-get-layout-from-sysfs.patch

fc6001
From 0c5d6054e499369cb6be74d9867743b2af8e4c05 Mon Sep 17 00:00:00 2001
fc6001
From: "mwilck@arcor.de" <mwilck@arcor.de>
fc6001
Date: Fri, 2 Aug 2013 00:35:14 +0200
fc6001
Subject: [PATCH] mdmon: always get layout from sysfs
fc6001
fc6001
commit 71d68ff62 uses the array layout. It needs to be initialized.
fc6001
fc6001
Signed-off-by: Martin Wilck <mwilck@arcor.de>
fc6001
Signed-off-by: NeilBrown <neilb@suse.de>
fc6001
---
fc6001
 managemon.c | 2 +-
fc6001
 1 file changed, 1 insertion(+), 1 deletion(-)
fc6001
fc6001
diff --git a/managemon.c b/managemon.c
fc6001
index 6cd93e5..21bf2bd 100644
fc6001
--- a/managemon.c
fc6001
+++ b/managemon.c
fc6001
@@ -652,7 +652,7 @@ static void manage_new(struct mdstat_ent *mdstat,
fc6001
 	mdi = sysfs_read(-1, mdstat->devnum,
fc6001
 			 GET_LEVEL|GET_CHUNK|GET_DISKS|GET_COMPONENT|
fc6001
 			 GET_DEGRADED|GET_SAFEMODE|
fc6001
-			 GET_DEVS|GET_OFFSET|GET_SIZE|GET_STATE);
fc6001
+			 GET_DEVS|GET_OFFSET|GET_SIZE|GET_STATE|GET_LAYOUT);
fc6001
 
fc6001
 	new = malloc(sizeof(*new));
fc6001