From 999952c5b9a21451d1b76c53a7dca615cd815113 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 19 Nov 2012 16:23:18 +0100 Subject: [PATCH] thin: update recent patchset Parse pool params only for creation of thin pools. --- tools/lvcreate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 470084c59..801ff6491 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -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;