]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] md: ignore auto-readonly flag for arrays where it isn't meaningful
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2005 05:39:42 +0000 (21:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:39 +0000 (07:56 -0800)
commitfd9d49cac46f5758d513ccf831b599dd4412546f
tree980dcde5398f3d0f2724637dd499f922551328d3
parent8e1b39d623359e5ef7983a2bd0fb676be45cba31
[PATCH] md: ignore auto-readonly flag for arrays where it isn't meaningful

The 'auto-readonly' flag (which suppresses resync and superblock updates until
the first write) is not meaningful for personalities that don't support resync
or superblock writes (raid0, linear, etc).

So clear the setting early to avoid it confusing anything - e.g.  appearing in
/proc/mdstat

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c