All of lore.kernel.org
 help / color / mirror / Atom feed
* master - lvconvert: fix last commit
@ 2013-07-04 12:03 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2013-07-04 12:03 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a0ce432829d71da0c03647e249f4742cc98cea74
Commit:        a0ce432829d71da0c03647e249f4742cc98cea74
Parent:        969c87fa5b66859567a2d6de2b6700ee795d8e59
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Thu Jul 4 14:02:27 2013 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Thu Jul 4 14:02:27 2013 +0200

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index fff0188..a0e6af7 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;
 



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-04 12:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-04 12:03 master - lvconvert: fix last commit Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.