[PATCH] md: Allow the write_mostly flag to be set via sysfs
authorNeilBrown <neilb@suse.de>
Mon, 26 Jun 2006 07:28:01 +0000 (00:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:40 +0000 (09:58 -0700)
commitf655675b3fe09c4d0506d357527fe07544623009
tree969a798b6ba25b88f08b0f9cfe1aed323be81d3e
parenta94213b1fa7b26dcc271bf4b4f9eebf1f1af33a2
[PATCH] md: Allow the write_mostly flag to be set via sysfs

It appears in /sys/mdX/md/dev-YYY/state
and can be set or cleared by writing 'writemostly' or '-writemostly'
respectively.

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