1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

only thin volumes need converting

This commit is contained in:
Alasdair Kergon 2011-09-06 15:35:11 +00:00
parent 9ac61d2ba2
commit e866a22916

View 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;