Skip to contentSkip to conversation

LVM2 ./WHATS_NEW_DM libdm/libdm-deptree.c

PATCH [email protected] 1 participant 1 message Feb 18, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-02-18 16:13:57

Modified files:
. : WHATS_NEW_DM
libdm : libdm-deptree.c

Log message:
Add debug message for open_count failure

Report open_count problem as debug.

Function using _node_has_closed_parents decides whether it's error or could be ignored.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.447&r2=1.448
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-deptree.c.diff?cvsroot=lvm2&r1=1.89&r2=1.90

WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@
 Version 1.02.64 - 
 ===================================
+  Log debug open_count in _node_has_closed_parents().
   Change dm_report_field_string() API to accept const char *const *data.
 
 Version 1.02.63 - 9th February 2011
libdm/libdm-deptree.c +4 -1
@@ -938,8 +938,11 @@
 		    !info.exists)
 			continue;
 
-		if (info.open_count)
+		if (info.open_count) {
+			log_debug("Node %s %d:%d has open_count %d", uuid_prefix,
+				  dinfo->major, dinfo->minor, info.open_count);
 			return 0;
+		}
 	}
 
 	return 1;