1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00

report: report merged state for inactive LV

This was missing piece in 77997c7673.
When merging origin is inactive (while driver is loaded) we
could already report merge in progress values as there is
no way to activate 'old state' now.
This commit is contained in:
Zdenek Kabelac 2017-01-05 15:52:00 +01:00
parent d6a74025df
commit 74969c9a38

View File

@ -136,11 +136,14 @@ static int _check_merging_origin(const struct logical_volume *lv,
case SEG_STATUS_SNAPSHOT:
break;
default:
/* When inactive, it's technically merging */
if (status->info_ok && !status->info.exists)
break;
return 1;
}
/* Origin is gone */
log_debug_activation("Merge is progress, reporting merged LV %s.",
log_debug_activation("Merge is in progress, reporting merged LV %s.",
display_lvname(lv->snapshot->lv));
*merged = 1;