mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-28 11:22:15 +03:00
lvresize: use standard extent conversion function
We need to validate whether the requested resizing size can be expressed with given extent_size.
This commit is contained in:
parent
bb34ebd4e4
commit
f486eb60d5
@ -5197,7 +5197,8 @@ static int _lvresize_adjust_size(struct volume_group *vg,
|
||||
display_size(vg->cmd, size));
|
||||
}
|
||||
|
||||
*extents = size / extent_size;
|
||||
if (!(*extents = extents_from_size(vg->cmd, size, extent_size)))
|
||||
return_0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user