]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
Don't let incremental add devices to active arrays.
authorNeilBrown <neilb@suse.de>
Tue, 6 Jul 2010 02:04:40 +0000 (12:04 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 6 Jul 2010 02:04:40 +0000 (12:04 +1000)
commit3a6ec29ad5695e23723fe18cb0ce3c49cd675fa2
tree5fe0d624e7def6583c9ee83b4275f1c5ed6c4b00
parente5c99c0811199a734ed0fe41784d22230922a49a
Don't let incremental add devices to active arrays.

Adding devices to active arrays in --incremental is a bit dubious.

Normally the array won't be activated until all expected devices are
present, so this situation would mean that the given device is not
expected, so is probably failed.  In that case it should only be added
by explicit sysadmin request.

However if --run was given, then quite possibly the array was
assembled earlier when not complete, so it is less clear whether it is
wrong to add this device or not.  In that case add it as that is
generally safest.

It would be nice to allow policy for this to be explicitly given by
sysadmin.

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