[PATCH 6/8] dm: allow slashes in dm device names

Joe Thornber (joe@fib011235813.fsnet.co.uk)
Wed, 26 Feb 2003 17:11:57 +0000


Allow slashes ('/') within a DM device name, but not at the beginning.

Devfs will automatically create all necessary sub-directories if a name
with embedded slashes is registered. [Kevin Corry]

--- diff/drivers/md/dm-ioctl.c 2003-02-26 16:09:57.000000000 +0000
+++ source/drivers/md/dm-ioctl.c 2003-02-26 16:10:07.000000000 +0000
@@ -545,7 +545,7 @@

static int check_name(const char *name)
{
- if (strchr(name, '/')) {
+ if (name[0] == '/') {
DMWARN("invalid device name");
return -EINVAL;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/