From 8382f19bdcc6d2d1de92154e11129acdcaab10fa Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 21 Dec 2006 17:10:52 +1100 Subject: Add new mode: --incremental --incremental allows arrays to be assembled one device at a time. This is expected to be used with udev. --- Monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Monitor.c') diff --git a/Monitor.c b/Monitor.c index 6a4c8de..213e58d 100644 --- a/Monitor.c +++ b/Monitor.c @@ -601,7 +601,7 @@ int Wait(char *dev) if (major(stb.st_rdev) == MD_MAJOR) devnum = minor(stb.st_rdev); else - devnum = -minor(stb.st_rdev)/16; + devnum = -1-(minor(stb.st_rdev)/64); while(1) { struct mdstat_ent *ms = mdstat_read(1, 0); -- cgit v1.2.1