From d555f101466ab9ad72399c8de92713230e2c9c77 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 27 Nov 2008 15:46:51 +1100 Subject: Assemble: allow --force to work even when event counts are 0. If any superblocks in a confused array had an event count of 0, "mdadm -Af" would not update the event counts to assemble the array. I don't remember why that text is there, and it has caused at least one situation to be difficult to recover from. So remove the test. --force means --force! Signed-off-by: NeilBrown --- Assemble.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'Assemble.c') diff --git a/Assemble.c b/Assemble.c index 79f0912..1d37870 100644 --- a/Assemble.c +++ b/Assemble.c @@ -632,7 +632,6 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, int j = best[i]; if (j>=0 && !devices[j].uptodate && - devices[j].i.events > 0 && (chosen_drive < 0 || devices[j].i.events > devices[chosen_drive].i.events)) @@ -690,7 +689,6 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, int j = best[i]; if (j >= 0 && !devices[j].uptodate && - devices[j].i.events > 0 && devices[j].i.events == current_events) { chosen_drive = j; goto add_another; -- cgit