]> sourceware.org Git - lvm2.git/commitdiff
only thin volumes need converting
authorAlasdair Kergon <agk@redhat.com>
Tue, 6 Sep 2011 15:35:11 +0000 (15:35 +0000)
committerAlasdair Kergon <agk@redhat.com>
Tue, 6 Sep 2011 15:35:11 +0000 (15:35 +0000)
tools/lvcreate.c

index 2e1fbf14cfe03066a90af3fe64cf5d74930cdc12..6d6a7b9815edfb1247251f1a8121d15d8132e27f 100644 (file)
@@ -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;
This page took 0.034154 seconds and 5 git commands to generate.