mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Remember to update VG free_count when reducing size of an LV.
This commit is contained in:
parent
401ae21308
commit
61e9603be5
@ -477,6 +477,7 @@ int lv_reduce(struct format_instance *fi,
|
||||
|
||||
lv->le_count -= extents;
|
||||
lv->size = (uint64_t) lv->le_count * lv->vg->extent_size;
|
||||
lv->vg->free_count += extents;
|
||||
|
||||
if (fi->fmt->ops->lv_setup && !fi->fmt->ops->lv_setup(fi, lv)) {
|
||||
stack;
|
||||
|
Loading…
x
Reference in New Issue
Block a user