]> git.ipfire.org Git - thirdparty/mdadm.git/commit
FIX: Set 'active' array state before array configuration
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 10 Mar 2011 00:41:28 +0000 (11:41 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 10 Mar 2011 00:41:28 +0000 (11:41 +1100)
commitfcdfb8148853e33757171cc2c12e4c95795063cd
tree567b817e8b24e7ed38e24894fa75cf6515a1621e
parent82a7851e5f5575991967d953c33116f6f2d60072
FIX: Set 'active' array state before array configuration

For not reshaped array in container during assembly array is in
auto-read-only state.  It is not possible to set disk slot for such
array and later reshape cannot be started also.  To move array from
'auto-read-only' to 'active' state storing 'active' state to sysfs is
added. This allows for disks configuration and reshape.

During reshaped array restart it is disabled by condition on restart
variable.

When reshape is starting, storing 'active' state to already active
array should not matter.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c