summaryrefslogtreecommitdiffstats
path: root/tools/vgchange.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/vgchange.c')
-rw-r--r--tools/vgchange.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c
index fd4e4208..8cb0e230 100644
--- a/tools/vgchange.c
+++ b/tools/vgchange.c
@@ -100,6 +100,10 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd,
if (!lv_is_visible(lv))
continue;
+ /* Never manipulate with thin pools in use */
+ if (lv_is_used_thin_pool(lv))
+ continue;
+
/* If LV is sparse, activate origin instead */
if (lv_is_cow(lv) && lv_is_virtual_origin(origin_from_cow(lv)))
lv = origin_from_cow(lv);