summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-01-05 15:52:00 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2017-01-05 15:54:14 +0100
commit74969c9a38c286037d499a6ed603b1ae806cd37b (patch)
tree37afd36e7402306973cb7a65a4f7f99efface8b4
parentd6a74025df1afb3d76bec435bc6a40d649217b42 (diff)
downloadlvm2-74969c9a38c286037d499a6ed603b1ae806cd37b.tar.gz
report: report merged state for inactive LV
This was missing piece in 77997c7673bfca56f51ae4eb55a50bc76e40fe79. 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.
-rw-r--r--tools/reporter.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/reporter.c b/tools/reporter.c
index 6c5996b1f..e70fa2960 100644
--- a/tools/reporter.c
+++ b/tools/reporter.c
@@ -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;