Assemble: don't assume array is 'clean' unless all devices think it is.

This is only significant for --assemble --force where some old
devices might be included into the array.  If anything looks like
it isn't clean, the kernel will not allow a degraded array to be started.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2008-12-18 14:11:59 +11:00
parent 22eba51216
commit 4e9a6ff778
1 changed files with 2 additions and 0 deletions

View File

@ -749,6 +749,8 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
continue;
devices[j].i.disk.state = desired_state;
if (!(devices[j].i.array.state & 1))
clean = 0;
if (st->ss->update_super(st, &devices[j].i, "assemble", NULL,
verbose, 0, NULL)) {