]> git.ipfire.org Git - thirdparty/mdadm.git/commit - monitor.c
Monitor: write meta data in readonly state, sometimes
authormwilck@arcor.de <mwilck@arcor.de>
Tue, 24 Sep 2013 18:53:18 +0000 (20:53 +0200)
committerNeilBrown <neilb@suse.de>
Wed, 16 Oct 2013 04:31:30 +0000 (15:31 +1100)
commita4921f30ec2ecc2d685573899cb86064b0cd78e9
tree87c956a483205012d56e63af5059ee2927b6c00a
parent21529ab377875997f3a974244fb9933e69e2dd97
Monitor: write meta data in readonly state, sometimes

This patch reverts 24a216bf:
"Monitor: Don't write metadata in inactive array state".

While it's true that writing meta data is usually not necessary
in readonly state, there is one important exception: if a
disk goes faulty, we want to record that, even if the array is
inactive.

We might as well just revert 24a216bf, because with the recently
submitted patch
"Monitor: don't set arrays dirty after transition to read-only"
those meta data writes that really annoying (for a clean, readonly,
healthy array during startup) are gone anyway.

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
monitor.c