1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-21 22:04:19 +03:00

lvconvert: pass force and yes options for vdo conversion

This commit is contained in:
Zdenek Kabelac 2019-01-23 22:51:24 +01:00
parent ab1fd0cb37
commit b64021ee5f

View File

@ -5017,7 +5017,9 @@ static int _lvconvert_to_vdopool_single(struct cmd_context *cmd,
goto out;
}
if (!wipe_lv(lv, (struct wipe_params) { .do_zero = 1, .do_wipe_signatures = 1 })) {
if (!wipe_lv(lv, (struct wipe_params) { .do_zero = 1, .do_wipe_signatures = 1,
.yes = arg_count(cmd, yes_ARG),
.force = arg_count(cmd, force_ARG)})) {
log_error("Aborting. Failed to wipe VDO data store.");
goto out;
}