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

From: Joe Thornber (joe@fib011235813.fsnet.co.uk)
Date: Wed Feb 26 2003 - 12:11:57 EST


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/



This archive was generated by hypermail 2b29 : Fri Feb 28 2003 - 22:00:36 EST