]> git.ipfire.org Git - thirdparty/mdadm.git/commit
open_mddev: open RDONLY if RDWR doesn't work.
authorNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 03:49:39 +0000 (14:49 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 03:49:39 +0000 (14:49 +1100)
commitc3f26510c6b2a9b634fd417e7fa3d4bf9674dd28
tree163bb8706d08fecdec104879bbe0f4521a81a072
parent562e70e4c4cec0f14125f9864770b6f228921b5c
open_mddev: open RDONLY if RDWR doesn't work.

If an array is read-only then "mdadm -S"
cannot open it to stop it without this fix.

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