]> err.no Git - linux-2.6/commit
md: correctly update sysfs when a raid1 is reshaped
authorNeilBrown <neilb@suse.de>
Wed, 22 Aug 2007 21:01:53 +0000 (14:01 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 23 Aug 2007 02:52:46 +0000 (19:52 -0700)
commita88aa7865bc1d1d451af2d585ac0119164ce8e00
tree2ecde2e24540c611f8930bbee94e1e428038f3a1
parent918f02383fb9ff5dba29709f3199189eeac55021
md: correctly update sysfs when a raid1 is reshaped

When a raid1 array is reshaped (number of drives changed), the list of devices
is compacted, so that slots for missing devices are filled with working
devices from later slots.  This requires the "rd%d" symlinks in sysfs to be
updated.

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/raid1.c