]> err.no Git - linux-2.6/commit
md: give userspace control over removing failed devices when external metdata in use
authorNeilBrown <neilb@suse.de>
Wed, 6 Feb 2008 09:39:51 +0000 (01:39 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:18 +0000 (10:41 -0800)
commitc303da6d713b87b7b3f999f5acce8ecc76ff1adb
tree5bd9852beea7b4d8a4cffe07657ca2ca3d71a3fc
parente691063a61f7f72a7d2882eb744b07a520cde23b
md: give userspace control over removing failed devices when external metdata in use

When a device fails, we must not allow an further writes to the array until
the device failure has been recorded in array metadata.  When metadata is
managed externally, this requires some synchronisation...

Allow/require userspace to explicitly remove failed devices from active
service in the array by writing 'none' to the 'slot' attribute.  If this
reduces the number of failed devices to 0, the write block will automatically
be lowered.

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