Skip to contentSkip to conversation

master - lvchange: persistent major/minor processing regression

PATCH Heinz Mauelshagen 1 participant 1 message Mar 31, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d6ddacf6a1543ba690fc349fad4c0c05cad1183b
Commit:        d6ddacf6a1543ba690fc349fad4c0c05cad1183b
Parent:        0ed087aae504e419ff9712ce8479b04beec38e03
Author:        Heinz Mauelshagen <[email protected]>
AuthorDate:    Fri Mar 31 13:51:39 2017 +0200
Committer:     Heinz Mauelshagen <[email protected]>
CommitterDate: Fri Mar 31 13:51:39 2017 +0200

lvchange: persistent major/minor processing regression

Fix a regression introduced by new command line processing (see starting commit 1e2420bca85da9a37570871cd70192e9ae831786) causing activation to be rejected in combination with setting persistent minor device numbers.

Resolves: rhbz1437611

---
 tools/command-lines.in |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
tools/command-lines.in +7 -2
index 6a73bf8..3e3f480 100644
@@ -296,12 +296,17 @@ OO: --monitor Bool, OO_LVCHANGE
 ID: lvchange_poll
 DESC: Start or stop processing an LV conversion.
 
-lvchange --persistent y --minor Number LV
-OO: --major Number, OO_LVCHANGE
+lvchange --persistent y --minor Number --activate Active LV
+OO: --minor Number, OO_LVCHANGE
 ID: lvchange_persistent
 DESC: Make the minor device number persistent for an LV.
 RULE: all not LV_thinpool LV_cachepool
 
+lvchange --persistent n --activate LV
+ID: lvchange_persistent
+DESC: Remove the minor device number persistent for an LV.
+RULE: all not LV_thinpool LV_cachepool
+
 ---
 
 OO_LVCONVERT_POOL: --poolmetadata LV, --poolmetadatasize SizeMB,