]> git.baikalelectronics.ru Git - kernel.git/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)
commit5b162b69a3d0a8c1d99543b6d01aa902785be1ce
tree2ecde2e24540c611f8930bbee94e1e428038f3a1
parent85775adb8837e020382694556dbcdeee13cf5ee3
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