From cb49dd4aa4e6fecb80c163f0279803d4036e48c5 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 6 Oct 2014 14:42:47 +0200 Subject: [PATCH] lvconvert: splitsnapshot supports --yes Handle --yes arg to skip prompt. --- WHATS_NEW | 1 + tools/lvconvert.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 6b768eab8..d2b530374 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.112 - ===================================== + Support --yes with lvconvert --splitsnapshot. Fix detection of unsupported thin external lvconversions. Fix detection of unsupported cache and thin pool lvconversions. Fix detection of unsupported lvconversion of cache to snapshot. diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 070c5e465..4bf43069c 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -2002,7 +2002,7 @@ static int _lvconvert_splitsnapshot(struct cmd_context *cmd, struct logical_volu if (!lv_check_not_in_use(cow)) return_ECMD_FAILED; - if ((lp->force == PROMPT) && + if ((lp->force == PROMPT) && !lp->yes && lv_is_visible(cow) && lv_is_active(cow)) { if (yes_no_prompt("Do you really want to split off active "