diff options
Diffstat (limited to 'tools/lvcreate.c')
-rw-r--r-- | tools/lvcreate.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 3c89fd2c1..06d24430f 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -1762,8 +1762,12 @@ static int _lvcreate_single(struct cmd_context *cmd, const char *vg_name, if (!_update_extents_params(vg, lp, lcp)) goto_out; - if (seg_is_vdo(lp) && !check_vdo_constrains(cmd, (uint64_t)lp->extents * vg->extent_size, - lcp->virtual_size, &lp->vdo_params)) + if (seg_is_vdo(lp) && + !check_vdo_constrains(cmd, &(struct vdo_pool_size_config) { + .physical_size = (uint64_t)lp->extents * vg->extent_size, + .virtual_size = lcp->virtual_size, + .block_map_cache_size_mb = lp->vdo_params.block_map_cache_size_mb, + .index_memory_size_mb = lp->vdo_params.index_memory_size_mb })) goto_out; if (seg_is_thin(lp) && !_validate_internal_thin_processing(lp)) |