]> err.no Git - linux-2.6/commit
[PATCH] md: remove slashes from disk names when creation dev names in sysfs
authorNeil Brown <neilb@suse.de>
Thu, 12 Jan 2006 09:05:23 +0000 (01:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 17:08:49 +0000 (09:08 -0800)
commit1edf80d347387405ff4e8934d194d75f57a3caef
treecaa49dd92e32368cd767690cdbd034c9645d0f07
parent2a7e2f7dcb81279e73aefb691ea55ab3540e408a
[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>
drivers/md/md.c