From ff5dabd5a09731f8ee880dae7f314f6b56717ff7 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Wed, 21 Nov 2001 15:49:45 +0000 Subject: [PATCH] o Remove hard coded path to /dev/device-mapper/control --- libdm/libdm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdm/libdm.c b/libdm/libdm.c index 9cc22bdeb..bcfe7d987 100644 --- a/libdm/libdm.c +++ b/libdm/libdm.c @@ -20,7 +20,7 @@ #include #include -#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; }