summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2014-10-06 14:42:47 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2014-10-06 15:22:22 +0200
commitcb49dd4aa4e6fecb80c163f0279803d4036e48c5 (patch)
treeab3bdea60a5e3334a857382ad61074747de033ad
parentb2b18a5f8b4f6c5b116655f7e9e7c102462f693f (diff)
downloadlvm2-cb49dd4aa4e6fecb80c163f0279803d4036e48c5.tar.gz
lvconvert: splitsnapshot supports --yes
Handle --yes arg to skip prompt.
-rw-r--r--WHATS_NEW1
-rw-r--r--tools/lvconvert.c2
2 files changed, 2 insertions, 1 deletions
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 "