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:
parent
cf73f6cf61
commit
2583732165
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user