From a0ce432829d71da0c03647e249f4742cc98cea74 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 4 Jul 2013 14:02:27 +0200 Subject: [PATCH] lvconvert: fix last commit Condition needs to check for passed in pool_metadata_lv_name which needs to be renamed to _tmeta, for !pool_metadata_lv_name it's already created with correct _tmeta name. --- tools/lvconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index fff0188ab..a0e6af796 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -2203,7 +2203,7 @@ mda_write: /* Rename deactivated metadata LV to have _tmeta suffix */ /* Implicit checks if metadata_lv is visible */ - if (!lp->pool_metadata_lv_name && + if (lp->pool_metadata_lv_name && !lv_rename_update(cmd, metadata_lv, metadata_name, 0)) return_0;