]> git.baikalelectronics.ru Git - kernel.git/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)
commitce88a7829ee343671adb4fd2fd9d62ef75cb4702
tree5bd9852beea7b4d8a4cffe07657ca2ca3d71a3fc
parent4e83521f2012ac5b58f6aa80d09f9bac5bd63d7c
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