From f8aee4460abb81af950451a753cafbdc1676e469 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 3 Nov 2011 14:41:18 +0000 Subject: [PATCH] Thin avoids need of having writable VG for activation --- tools/lvchange.c | 4 ---- tools/vgchange.c | 6 ------ 2 files changed, 10 deletions(-) diff --git a/tools/lvchange.c b/tools/lvchange.c index 42933b626..c58a9e380 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -142,10 +142,6 @@ static int lvchange_availability(struct cmd_context *cmd, "exclusively", lv->name); if (!activate_lv_excl(cmd, lv)) return_0; - /* Drop any left thin messages after activation */ - if (lv_is_thin_volume(lv) && - !detach_pool_messages(first_seg(lv)->pool_lv)) - return_0; } else if (activate == CHANGE_ALY) { log_verbose("Activating logical volume \"%s\" locally", lv->name); diff --git a/tools/vgchange.c b/tools/vgchange.c index 6004371db..39d58f146 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -157,12 +157,6 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd, stack; continue; } - /* Drop any left thin messages after activation */ - if (lv_is_thin_volume(lv) && - !detach_pool_messages(first_seg(lv)->pool_lv)) { - stack; - continue; - } } else if (activate == CHANGE_ALY) { if (!activate_lv_local(cmd, lv)) { stack;