]> sourceware.org Git - dm.git/commitdiff
o Remove hard coded path to /dev/device-mapper/control
authorJoe Thornber <joe@fib011235813.fsnet.co.uk>
Wed, 21 Nov 2001 15:49:45 +0000 (15:49 +0000)
committerJoe Thornber <joe@fib011235813.fsnet.co.uk>
Wed, 21 Nov 2001 15:49:45 +0000 (15:49 +0000)
lib/libdm.c

index 9cc22bdebcdb4ea684e24c92db241055dcdcd5a2..bcfe7d987c8cb9314ba6564bbe615a5bd6599222 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/dm-ioctl.h>
 #include <linux/kdev_t.h>
 
-#define DEVICE_MAPPER_CONTROL "/dev/device-mapper/control"
+#define DEV_DIR "/dev/"
 #define ALIGNMENT sizeof(int)
 
 /*
@@ -354,7 +354,7 @@ int dm_task_run(struct dm_task *dmt)
                return 0;
        }
 
-       if ((fd = open(DEVICE_MAPPER_CONTROL, O_RDWR)) < 0) {
+       if ((fd = open(DEV_DIR DM_DIR "/control", O_RDWR)) < 0) {
                log("Couldn't open device-mapper control device");
                goto bad;
        }
This page took 0.026455 seconds and 5 git commands to generate.