From: NeilBrown Date: Wed, 21 Nov 2012 21:58:54 +0000 (+1100) Subject: Allow --wait to wait for delayed resync. X-Git-Tag: mdadm-3.3-rc1~142 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=639c3c103a380a63457583cbbbaacf5aa37f7802;hp=ae0dcfbdb23f2620f27ecb49338916c36b380e3e;p=thirdparty%2Fmdadm.git Allow --wait to wait for delayed resync. If a resync is delayed, then e->percent will be negative but not RESYNC_NONE. In that case we still want to wait. Reported-by: Ross Boylan Signed-off-by: NeilBrown --- diff --git a/Monitor.c b/Monitor.c index c4d57c31..a5e7aaab 100644 --- a/Monitor.c +++ b/Monitor.c @@ -973,7 +973,7 @@ int Wait(char *dev) if (e->devnum == devnum) break; - if (!e || e->percent < 0) { + if (!e || e->percent == RESYNC_NONE) { if (e && e->metadata_version && strncmp(e->metadata_version, "external:", 9) == 0) { if (is_subarray(&e->metadata_version[9]))