[lvm-devel] LVM2/libdm/ioctl libdm-iface.c
prajnoha at sourceware.org
prajnoha at sourceware.org
Mon May 3 22:08:39 UTC 2010
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha at sourceware.org 2010-05-03 22:08:39
Modified files:
libdm/ioctl : libdm-iface.c
Log message:
Specify exactly which ioctl doesn't have a cookie set (for better debugging).
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/ioctl/libdm-iface.c.diff?cvsroot=lvm2&r1=1.72&r2=1.73
--- LVM2/libdm/ioctl/libdm-iface.c 2010/05/03 21:06:53 1.72
+++ LVM2/libdm/ioctl/libdm-iface.c 2010/05/03 22:08:38 1.73
@@ -1770,11 +1770,13 @@
* libdevmapper's node and symlink creation code.
*/
if (!dmt->cookie_set && dm_udev_get_sync_support()) {
- log_debug("Cookie value is not set while trying to call "
- "DM_DEVICE_RESUME, DM_DEVICE_REMOVE or DM_DEVICE_RENAME "
+ log_debug("Cookie value is not set while trying to call %s "
"ioctl. Please, consider using libdevmapper's udev "
"synchronisation interface or disable it explicitly "
- "by calling dm_udev_set_sync_support(0).");
+ "by calling dm_udev_set_sync_support(0).",
+ dmt->type == DM_DEVICE_RESUME ? "DM_DEVICE_RESUME" :
+ dmt->type == DM_DEVICE_REMOVE ? "DM_DEVICE_REMOVE" :
+ "DM_DEVICE_RENAME");
log_debug("Switching off device-mapper and all subsystem related "
"udev rules. Falling back to libdevmapper node creation.");
/*
More information about the lvm-devel
mailing list