summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-12-05 05:56:18 +0000
committerNeil Brown <neilb@suse.de>2005-12-05 05:56:18 +0000
commitee04451c56f5bc39a77515e2e51897ac1fc15104 (patch)
treed9facd15fae7abbbf7c668da486656a79dad1d63 /Assemble.c
parent773135f5bdf57219bf7f957b86964ba40d041180 (diff)
downloadmdadm-ee04451c56f5bc39a77515e2e51897ac1fc15104.tar.gz
mdadm-ee04451c56f5bc39a77515e2e51897ac1fc15104.tar.xz
mdadm-ee04451c56f5bc39a77515e2e51897ac1fc15104.zip
Allow event counters to be off by one
.. even without --force Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index c78a1b1..9fbc53e 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -369,7 +369,9 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
sparecnt=0;
for (i=0; i< bestcnt ;i++) {
int j = best[i];
- int event_margin = !force;
+ int event_margin = 1; /* always allow a difference of '1'
+ * like the kernel does
+ */
if (j < 0) continue;
/* note: we ignore error flags in multipath arrays
* as they don't make sense