[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] LVM2/libdm libdm-common.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk sourceware org	2009-08-03 18:33:08

Modified files:
	libdm          : libdm-common.c 

Log message:
	Add udev checks.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-common.c.diff?cvsroot=lvm2&r1=1.72&r2=1.73

--- LVM2/libdm/libdm-common.c	2009/08/03 18:01:47	1.72
+++ LVM2/libdm/libdm-common.c	2009/08/03 18:33:08	1.73
@@ -355,7 +355,9 @@
 				  dev_name);
 			return 0;
 		}
-	}
+	} else if (dm_udev_get_sync_support())
+		log_warn("%s not set up by udev: Falling back to direct "
+			 "node creation.", path);
 
 	old_mask = umask(0);
 	if (mknod(path, S_IFBLK | mode, dev) < 0) {
@@ -426,6 +428,9 @@
 
 	if (stat(path, &info) < 0)
 		return 1;
+	else if (dm_udev_get_sync_support())
+		log_warn("Node %s was not removed by udev. "
+			 "Falling back to direct node removal.", path);
 
 	if (unlink(path) < 0) {
 		log_error("Unable to unlink device node for '%s'", dev_name);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]