1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-03 17:50:03 +03:00

vdo: fix setting VDO size when stacked

When VDO is used as data LV for thin-pool, we need
to use correct function to propagate this through
the stack of volumes.
This commit is contained in:
Zdenek Kabelac 2024-04-26 19:10:04 +02:00
parent 21b683614c
commit 3fc34ac7ee

View File

@ -3516,8 +3516,8 @@ static int _lv_add_vdo_segment(struct logical_volume *lv, uint64_t status,
dm_list_add(&lv->segments, &seg->list);
}
lv->le_count += extents;
lv->size += (uint64_t) extents * lv->vg->extent_size;
if (!_setup_lv_size(lv, lv->le_count + extents))
return_0;
if (seg_lv(seg, 0) &&
!update_vdo_pool_virtual_size(first_seg(seg_lv(seg, 0))))