]> sourceware.org Git - lvm2.git/commitdiff
snapshot: fix checking of merged thin volume
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 25 Oct 2019 21:30:26 +0000 (23:30 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 25 Oct 2019 22:49:16 +0000 (00:49 +0200)
When merging of thin snapshot is taking place, the origin target will
be of thin type.

lib/activate/activate.c

index 6f5fa1ade61b12b54368fcb808122f0b784fb2c2..232d5818b98116b52486c837e9173ace53d168df 100644 (file)
@@ -763,7 +763,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));
                                /*
This page took 0.036063 seconds and 5 git commands to generate.