[lvm-devel] master - lvconvert: fix converting hidden lv to pool

David Teigland teigland at sourceware.org
Tue Apr 4 21:48:59 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=76b70d5058cbbe41b60b99f11cda5e698b3c62e9
Commit:        76b70d5058cbbe41b60b99f11cda5e698b3c62e9
Parent:        b951d0433765d3ed7b0507906dec1894053cef4f
Author:        David Teigland <teigland at redhat.com>
AuthorDate:    Tue Apr 4 16:47:47 2017 -0500
Committer:     David Teigland <teigland at redhat.com>
CommitterDate: Tue Apr 4 16:47:47 2017 -0500

lvconvert: fix converting hidden lv to pool

A hidden LV can not be converted to a thin pool or cache pool.
---
 tools/command-lines.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tools/command-lines.in b/tools/command-lines.in
index b2682fa..fe98cc6 100644
--- a/tools/command-lines.in
+++ b/tools/command-lines.in
@@ -495,6 +495,7 @@ ID: lvconvert_to_thinpool_or_swap_metadata
 DESC: Convert LV to type thin-pool (variant, use \\-\\-type thin-pool).
 DESC: Swap metadata LV in a thin pool (variant, use \\-\\-swapmetadata).
 FLAGS: PREVIOUS_SYNTAX
+RULE: all and lv_is_visible
 
 ---
 
@@ -533,6 +534,7 @@ ID: lvconvert_to_cachepool_or_swap_metadata
 DESC: Convert LV to type cache-pool (variant, use \\-\\-type cache-pool).
 DESC: Swap metadata LV in a cache pool (variant, use \\-\\-swapmetadata).
 FLAGS: PREVIOUS_SYNTAX
+RULE: all and lv_is_visible
 
 ---
 




More information about the lvm-devel mailing list