Thread (2 messages) 2 messages, 2 authors, 2013-08-05

Re: [PATCH] mdmon: let mdmon know the layout

From: NeilBrown <hidden>
Date: 2013-08-05 05:12:37

On Fri, 02 Aug 2013 10:14:45 +0200 Lukasz Dorau [off-list ref]
wrote:
quoted hunk ↗ jump to hunk
The following commit:

	Fix is_resync_complete for RAID10
	commit 71d68ff62f945254240575cd836f5f2a09ced5d2

requires that mdmon knows the layout.
So make manage_new() read the layout form sysfs.

Signed-off-by: Lukasz Dorau <redacted>
---
 managemon.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/managemon.c b/managemon.c
index 6cd93e5..7033c19 100644
--- a/managemon.c
+++ b/managemon.c
@@ -650,8 +650,8 @@ static void manage_new(struct mdstat_ent *mdstat,
 		return;
 
 	mdi = sysfs_read(-1, mdstat->devnm,
-			 GET_LEVEL|GET_CHUNK|GET_DISKS|GET_COMPONENT|
-			 GET_DEGRADED|GET_SAFEMODE|
+			 GET_LEVEL|GET_LAYOUT|GET_CHUNK|GET_DISKS|
+			 GET_COMPONENT|GET_DEGRADED|GET_SAFEMODE|
 			 GET_DEVS|GET_OFFSET|GET_SIZE|GET_STATE);
 
 	if (!mdi)
Thanks.  I applied a very similar patch from Martin Wilck instead (his came
first:-)

Thanks,
NeilBrown

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help