From e866a229164b9f0a20373b3b929325cdfe4e5f7c Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 6 Sep 2011 15:35:11 +0000 Subject: [PATCH] only thin volumes need converting --- tools/lvcreate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 2e1fbf14c..6d6a7b981 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -343,7 +343,7 @@ static int _read_size_params(struct lvcreate_params *lp, } } else { /* No virtual size given, so no thin LV to create. */ - if (!seg_is_thin_pool(lp) && !(lp->segtype = get_segtype_from_string(cmd, "thin_pool"))) + if (seg_is_thin_volume(lp) && !(lp->segtype = get_segtype_from_string(cmd, "thin_pool"))) return_0; lp->thin = 0; -- 2.43.5