master - lvconvert: splitsnapshot supports --yes
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=cb49dd4aa4e6fecb80c163f0279803d4036e48c5 Commit: cb49dd4aa4e6fecb80c163f0279803d4036e48c5 Parent: b2b18a5f8b4f6c5b116655f7e9e7c102462f693f Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Oct 6 14:42:47 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Oct 6 15:22:22 2014 +0200
lvconvert: splitsnapshot supports --yes
Handle --yes arg to skip prompt.
--- WHATS_NEW | 1 + tools/lvconvert.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
@@ -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.
tools/lvconvert.c +1 -1
@@ -2002,7 +2002,7 @@ static int _lvconvert_splitsnapshot(struct cmd_context *cmd, struct logical_voluif (!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 "