[lvm-devel] [PATCH 14/16] Add debug message for open_count failure

Zdenek Kabelac zkabelac at redhat.com
Fri Feb 11 10:31:00 UTC 2011


Report  open_count problem as debug.

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

Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>
---
 libdm/libdm-deptree.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c
index 8d00514..2293826 100644
--- a/libdm/libdm-deptree.c
+++ b/libdm/libdm-deptree.c
@@ -938,8 +938,11 @@ static int _node_has_closed_parents(struct dm_tree_node *node,
 		    !info.exists)
 			continue;
 
-		if (info.open_count)
+		if (info.open_count) {
+			log_debug("Node %s %d:%d is opened:%d", uuid_prefix,
+				  dinfo->major, dinfo->minor, info.open_count);
 			return 0;
+		}
 	}
 
 	return 1;
-- 
1.7.4




More information about the lvm-devel mailing list