Skip to contentSkip to conversation

master - lvconvert: pass force and yes options for vdo conversion

PATCH Zdenek Kabelac 1 participant 1 message Jan 28, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b64021ee5f7dfb25ca99921992fef3aa89ce7c4c
Commit:        b64021ee5f7dfb25ca99921992fef3aa89ce7c4c
Parent:        ab1fd0cb37b75311e1ec4e13bbaea4a214b43285
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Jan 23 22:51:24 2019 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jan 28 22:17:27 2019 +0100

lvconvert: pass force and yes options for vdo conversion

---
 tools/lvconvert.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
tools/lvconvert.c +3 -1
index 8ea7b65..9fa87c0 100644
@@ -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;
 	}