Skip to contentSkip to conversation

master - thin: update recent patchset

PATCH Zdenek Kabelac 1 participant 1 message Nov 19, 2012

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=999952c5b9a21451d1b76c53a7dca615cd815113
Commit:        999952c5b9a21451d1b76c53a7dca615cd815113
Parent:        c907ee0351b226eb9e89929afcfc008985f32f97
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Nov 19 16:23:18 2012 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Nov 19 16:28:00 2012 +0100

thin: update recent patchset

Parse pool params only for creation of thin pools.

---
 tools/lvcreate.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
tools/lvcreate.c +3 -2
index 470084c..801ff64 100644
@@ -785,8 +785,9 @@ static int _lvcreate_params(struct lvcreate_params *lp,
 	if (!_lvcreate_name_params(lp, cmd, &argc, &argv) ||
 	    !_read_size_params(lp, lcp, cmd) ||
 	    !get_stripe_params(cmd, &lp->stripes, &lp->stripe_size) ||
-	    !get_pool_params(cmd, &lp->chunk_size, &lp->discards,
-			     &lp->poolmetadatasize, &lp->zero) ||
+	    (lp->create_thin_pool &&
+	     !get_pool_params(cmd, &lp->chunk_size, &lp->discards,
+			      &lp->poolmetadatasize, &lp->zero)) ||
 	    !_read_mirror_params(lp, cmd) ||
 	    !_read_raid_params(lp, cmd))
 		return_0;