mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
indicate when deptree detects but ignores size change in debug msg
This commit is contained in:
parent
bee3b45081
commit
9cc266a5d2
@ -2364,9 +2364,6 @@ static int _load_node(struct dm_tree_node *dnode)
|
|||||||
existing_table_size = dm_task_get_existing_table_size(dmt);
|
existing_table_size = dm_task_get_existing_table_size(dmt);
|
||||||
if ((dnode->props.size_changed =
|
if ((dnode->props.size_changed =
|
||||||
(existing_table_size == seg_start) ? 0 : 1)) {
|
(existing_table_size == seg_start) ? 0 : 1)) {
|
||||||
log_debug("Table size changed from %" PRIu64 " to %"
|
|
||||||
PRIu64 " for %s", existing_table_size,
|
|
||||||
seg_start, dnode->name);
|
|
||||||
/*
|
/*
|
||||||
* Kernel usually skips size validation on zero-length devices
|
* Kernel usually skips size validation on zero-length devices
|
||||||
* now so no need to preload them.
|
* now so no need to preload them.
|
||||||
@ -2374,6 +2371,11 @@ static int _load_node(struct dm_tree_node *dnode)
|
|||||||
/* FIXME In which kernel version did this begin? */
|
/* FIXME In which kernel version did this begin? */
|
||||||
if (!existing_table_size && dnode->props.delay_resume_if_new)
|
if (!existing_table_size && dnode->props.delay_resume_if_new)
|
||||||
dnode->props.size_changed = 0;
|
dnode->props.size_changed = 0;
|
||||||
|
|
||||||
|
log_debug("Table size changed from %" PRIu64 " to %"
|
||||||
|
PRIu64 " for %s.%s", existing_table_size,
|
||||||
|
seg_start, dnode->name,
|
||||||
|
dnode->props.size_changed ? "" : " (Ignoring.)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user