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:
parent
22eba51216
commit
4e9a6ff778
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue