1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvcreate: Fix last commit for virtual sizes.

Don't stop when extents is 0 if a virtual size parameter was supplied
instead.
This commit is contained in:
Alasdair G Kergon 2017-05-12 13:16:10 +01:00
parent cf73f6cf61
commit 2583732165

View File

@ -407,7 +407,7 @@ static int _update_extents_params(struct volume_group *vg,
}
}
if (!lp->extents) {
if ((lcp->percent != PERCENT_NONE) && !lp->extents) {
log_error("Adjusted size of logical volume is 0 extents. Needs to be larger.");
return 0;
}