From eb4188830e8c6b44fcbb7a7da02c6b6438da3605 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 18 Feb 2011 16:13:56 +0000 Subject: [PATCH] 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. --- WHATS_NEW_DM | 1 + libdm/libdm-deptree.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 234989847..df475690d 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -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 diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index 8d0051494..8f51bf96b 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 has open_count %d", uuid_prefix, + dinfo->major, dinfo->minor, info.open_count); return 0; + } } return 1;