struct dm_vdo_target_params vdo_params; /* VDO parameters for vdoformat */
const char *lv_name;
uint32_t virtual_extents;
+ uint64_t header_size;
activation_change_t activate;
int do_zero;
int do_wipe_signatures; /* Used for wiping VDO backend volume */
}
}
- if (!convert_vdo_pool_lv(lv, &vcp->vdo_params, &lv->le_count, 1, 0))
+ if (!convert_vdo_pool_lv(lv, &vcp->vdo_params, &lvc.virtual_extents, vcp->do_zero, vcp->header_size))
return_NULL;
/* Create VDO LV with the name, we just release above */
struct volume_group *vg = lv->vg;
struct logical_volume *vdo_lv;
const char *vg_name = NULL;
- uint64_t vdo_pool_header_size;
struct vdo_convert_params vcp = {
.activate = CHANGE_AEY,
.lv_name = arg_str_value(cmd, name_ARG, NULL),
} else
vcp.lv_name = "lvol%d";
- if (!fill_vdo_target_params(cmd, &vcp.vdo_params, &vdo_pool_header_size, vg->profile))
+ if (!fill_vdo_target_params(cmd, &vcp.vdo_params, &vcp.header_size, vg->profile))
goto_out;
if (!get_vdo_settings(cmd, &vcp.vdo_params, NULL))