mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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:
parent
21b683614c
commit
3fc34ac7ee
@ -3516,8 +3516,8 @@ static int _lv_add_vdo_segment(struct logical_volume *lv, uint64_t status,
|
|||||||
dm_list_add(&lv->segments, &seg->list);
|
dm_list_add(&lv->segments, &seg->list);
|
||||||
}
|
}
|
||||||
|
|
||||||
lv->le_count += extents;
|
if (!_setup_lv_size(lv, lv->le_count + extents))
|
||||||
lv->size += (uint64_t) extents * lv->vg->extent_size;
|
return_0;
|
||||||
|
|
||||||
if (seg_lv(seg, 0) &&
|
if (seg_lv(seg, 0) &&
|
||||||
!update_vdo_pool_virtual_size(first_seg(seg_lv(seg, 0))))
|
!update_vdo_pool_virtual_size(first_seg(seg_lv(seg, 0))))
|
||||||
|
Loading…
Reference in New Issue
Block a user