1
0
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:
Alasdair Kergon 2002-05-30 16:08:19 +00:00
parent 401ae21308
commit 61e9603be5

View File

@ -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;