Skip to contentSkip to conversation

master - snapshot: fix checking of merged thin volume

PATCH Zdenek Kabelac 1 participant 1 message Oct 25, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=855b16ce14f09523132ea624a7b4d1edaccc2450
Commit:        855b16ce14f09523132ea624a7b4d1edaccc2450
Parent:        9968be55edcf6e9c56c0767aeecfaa65f8eb3785
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Oct 25 23:30:26 2019 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sat Oct 26 00:49:16 2019 +0200

snapshot: fix checking of merged thin volume

When merging of thin snapshot is taking place, the origin target will be of thin type.

---
 lib/activate/activate.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
lib/activate/activate.c +2 -1
index 6f5fa1a..232d581 100644
@@ -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));
 				/*