Skip to contentSkip to conversation

master - lvcreate: continue to accept --thinpool with -L and -V but not -T

PATCH Alasdair Kergon 1 participant 1 message Mar 20, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=642d682d8ddcc3152f68b3ec8518902a0ef448ac
Commit:        642d682d8ddcc3152f68b3ec8518902a0ef448ac
Parent:        b3e833c777f46c0c3b3ef70c94cd0fb808be0a50
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Mon Mar 20 21:57:17 2017 +0000
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Mon Mar 20 22:04:37 2017 +0000

lvcreate: continue to accept --thinpool with -L and -V but not -T

lvcreate --thinpool POOL1 -L 100M --virtualsize 100M snapper_thinp

https://bugzilla.redhat.com/1434027

(The general rule is that a command is accepted if it is unambiguous. The combination -L -V --thinpool uniquely identifies the operation.)

---
 tools/command-lines.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/command-lines.in +1 -1
index 2fec553..a4d1f38 100644
@@ -1056,7 +1056,7 @@ FLAGS: SECONDARY_SYNTAX
 ---
 
 lvcreate --size SizeMB --virtualsize SizeMB VG
-OO: --type thin, --type snapshot, --thin, --snapshot, OO_LVCREATE_POOL, OO_LVCREATE_THIN, OO_LVCREATE,
+OO: --type thin, --type snapshot, --thin, --snapshot, --thinpool LV_new, OO_LVCREATE_POOL, OO_LVCREATE_THIN, OO_LVCREATE,
 --stripes Number, --stripesize SizeKB
 OP: PV ...
 IO: --mirrors 0