1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Improve missing-kernel-driver error message.

This commit is contained in:
Alasdair Kergon 2002-11-01 16:16:42 +00:00
parent 50762c2186
commit ca94915779

View File

@ -351,7 +351,8 @@ int dm_task_run(struct dm_task *dmt)
snprintf(control, sizeof(control), "%s/control", dm_dir());
if ((fd = open(control, O_RDWR)) < 0) {
log_error("Couldn't open device-mapper control device");
log_error("%s: open failed: %s", control, strerror(errno));
log_error("Is device-mapper driver missing from kernel?");
goto bad;
}