]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
Incremental: remove old devices when assembling in container.
authorNeilBrown <neilb@suse.de>
Thu, 5 Jun 2014 05:58:31 +0000 (15:58 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 5 Jun 2014 05:58:31 +0000 (15:58 +1000)
commit02b70e83e6367c3337de288320cf4b0edf51ad0e
tree0926b10c42306245ef781c0ad31ba4d05a587380
parent8a3544f8959375ee167a46ff9e7fc4050127b349
Incremental: remove old devices when assembling in container.

When assembling a native array we just give all devices to the kernel
and leave it to discard the 'old' ones (based on sequence/event
number).

For external/container arrays, mdadm needs to do that.

So in assemble_container_content, get list of current devices in
array and discard any that aren't in the 'content' given.
They must have been rejected by metadata manager.

If we cannot discard old devices the array must already be active, so
just leave it alone, but with a message.

Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c