1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

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.
This commit is contained in:
Zdenek Kabelac 2011-02-18 16:13:56 +00:00
parent 45afc15547
commit eb4188830e
2 changed files with 5 additions and 1 deletions

View 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

View 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;