mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix lvreduce stripe rounding up from previous commit.
This commit is contained in:
parent
acf3616b3a
commit
6f14cd22fd
@ -609,8 +609,10 @@ static int _lvresize(struct cmd_context *cmd, struct volume_group *vg,
|
|||||||
if (size_rest && lp->resize == LV_REDUCE) {
|
if (size_rest && lp->resize == LV_REDUCE) {
|
||||||
log_print("Rounding size (%d extents) up to stripe "
|
log_print("Rounding size (%d extents) up to stripe "
|
||||||
"boundary size for segment (%d extents)",
|
"boundary size for segment (%d extents)",
|
||||||
lp->extents, lp->extents + size_rest);
|
lp->extents, lp->extents - size_rest +
|
||||||
lp->extents = lp->extents + size_rest;
|
(lp->stripes * stripesize_extents));
|
||||||
|
lp->extents = lp->extents - size_rest +
|
||||||
|
(lp->stripes * stripesize_extents);
|
||||||
} else if (size_rest) {
|
} else if (size_rest) {
|
||||||
log_print("Rounding size (%d extents) down to stripe "
|
log_print("Rounding size (%d extents) down to stripe "
|
||||||
"boundary size for segment (%d extents)",
|
"boundary size for segment (%d extents)",
|
||||||
|
Loading…
Reference in New Issue
Block a user