]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Monitor: Don't write metadata in inactive array state
authormwilck@arcor.de <mwilck@arcor.de>
Mon, 8 Jul 2013 21:50:38 +0000 (23:50 +0200)
committerNeilBrown <neilb@suse.de>
Tue, 9 Jul 2013 04:42:38 +0000 (14:42 +1000)
commit24a216bf408db4ec61ec6f735d1eb84a0618bfbb
tree8ba6d06fd67436345f8f27af30366afbbb630a55
parentd2424935237fa320bf903a2f32561d36edb75f01
Monitor: Don't write metadata in inactive array state

The kernel docs state that meta data is never written in states
clear, inactive, suspended, readonly, and read_auto.
Why should this be different for containers?

We need to write metadata when the array is disabled, though.
Tested with the DDF (10*) and IMSM (9*) tests, works.

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