[PATCH] md: remove slashes from disk names when creation dev names in sysfs
commit4ad9a19782ec6945f525e7dee617b05eb6976123
authorNeil Brown <neilb@suse.de>
Thu, 12 Jan 2006 09:05:23 +0000 (12 01:05 -0800)
committerChris Wright <chrisw@sous-sol.org>
Fri, 10 Feb 2006 07:20:17 +0000 (9 23:20 -0800)
tree2d6897f59aa9914c054e0bf1f5d64f64ec9f0dc7
parentc93e834ed994db3290c88391af4c2eea5e3f5f1e
[PATCH] md: remove slashes from disk names when creation dev names in sysfs

e.g. The sx8 driver uses names like sx8/0.

This would make a md component dev name like

   /sys/block/md0/md/dev-sx8/0

which is not allowed.  So we change the '/' to '!' just like
fs/partitions/check.c(register_disk) does.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/md.c