summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2019-10-25 23:30:26 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2019-10-26 00:41:40 +0200
commit8be8b994c6819343a13c547354507f6f89d837ca (patch)
tree9891757d0331f8c2c20b4fbcf173d7c55ea2466b
parent20d94e4072a93c199781e282d142ba7c80c9a437 (diff)
downloadlvm2-8be8b994c6819343a13c547354507f6f89d837ca.tar.gz
snapshot: fix checking of merged thin volume
When merging of thin snapshot is taking place, the origin target will be of thin type.
-rw-r--r--lib/activate/activate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/activate/activate.c b/lib/activate/activate.c
index 561a96581..f17be615d 100644
--- a/lib/activate/activate.c
+++ b/lib/activate/activate.c
@@ -818,7 +818,8 @@ int lv_info_with_seg_status(struct cmd_context *cmd,
with_open_count, with_read_ahead))
return_0;
- if (status->seg_status.type == SEG_STATUS_SNAPSHOT) {
+ if (status->seg_status.type == SEG_STATUS_SNAPSHOT ||
+ (lv_is_thin_volume(olv) && (status->seg_status.type == SEG_STATUS_THIN))) {
log_debug_activation("Snapshot merge is in progress, querying status of %s instead.",
display_lvname(lv));
/*