mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
o Remove hard coded path to /dev/device-mapper/control
This commit is contained in:
parent
ecea68d270
commit
ff5dabd5a0
@ -20,7 +20,7 @@
|
|||||||
#include <linux/dm-ioctl.h>
|
#include <linux/dm-ioctl.h>
|
||||||
#include <linux/kdev_t.h>
|
#include <linux/kdev_t.h>
|
||||||
|
|
||||||
#define DEVICE_MAPPER_CONTROL "/dev/device-mapper/control"
|
#define DEV_DIR "/dev/"
|
||||||
#define ALIGNMENT sizeof(int)
|
#define ALIGNMENT sizeof(int)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -354,7 +354,7 @@ int dm_task_run(struct dm_task *dmt)
|
|||||||
return 0;
|
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");
|
log("Couldn't open device-mapper control device");
|
||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user