1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

debug: trace when ignoring origin_only suspend

Add log debug message when origin_only suspend would be ignored.
This commit is contained in:
Zdenek Kabelac 2024-03-04 11:44:50 +01:00
parent 3b9787d4ee
commit 8c7400121e

View File

@ -2105,9 +2105,13 @@ static int _lv_suspend(struct cmd_context *cmd, const char *lvid_s,
/* Ignore origin_only unless LV is origin in both old and new metadata */
/* or LV is thin or thin pool volume */
if (!lv_is_thin_volume(lv) && !lv_is_thin_pool(lv) &&
!(lv_is_origin(lv) && lv_is_origin(lv_pre)))
if (laopts->origin_only &&
!lv_is_thin_volume(lv) && !lv_is_thin_pool(lv) &&
!(lv_is_origin(lv) && lv_is_origin(lv_pre))) {
log_debug_activation("Not using origin only for suspend of %s.",
display_lvname(lv));
laopts->origin_only = 0;
}
/*
* Preload devices for the LV.