]> sourceware.org Git - lvm2.git/commitdiff
Add debug message for open_count failure
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 18 Feb 2011 16:13:56 +0000 (16:13 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 18 Feb 2011 16:13:56 +0000 (16:13 +0000)
Report  open_count problem as debug.

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

WHATS_NEW_DM
libdm/libdm-deptree.c

index 234989847354c1b3709f2d1e0e2ca25750006d4b..df475690d8aa118b9bf8e7cf56dbc1f51c8a7359 100644 (file)
@@ -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
index 8d0051494ebd249fea65b5e8e925ed4c9c4c5202..8f51bf96bae2c48cacbd79fd71a454b5db6f2d82 100644 (file)
@@ -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;
This page took 0.044361 seconds and 5 git commands to generate.