]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] md: Remove attempt to use dynamic names in sysfs for component devices on...
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2005 05:39:35 +0000 (21:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:38 +0000 (07:56 -0800)
commit19133a4298223422742db7b5f940e8c54c6a1846
treeed11c4567ba37843d865308f1f399f4d2ab28fbe
parenta9701a30470856408d08657eb1bd7ae29a146190
[PATCH] md: Remove attempt to use dynamic names in sysfs for component devices on an MD array.

With version-0.90 superblock, component devices on an md device to not have
any stable name related to the array -(version-1 assigns a fixed index when
a device is added to an array, and this remains despit any hot-swap).

The intial code for making these devices appear in sysfs used dynamic
names, which would change whenever a hot-spare was swapped for a failed or
missing device.  This turns out not to be practical in sysfs for a number
of reasons.

This patch changes then naming of component devices to be based on the
result of 'bdevname'.  This is stable and should be unique.

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