master - lvconvert: fixing extraction of vgname
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ea63a38f5a883238bfdabdb3f4af5d08f4499424 Commit: ea63a38f5a883238bfdabdb3f4af5d08f4499424 Parent: dcc8f90c587be5e60f45847d7c8ffc945e78d41c Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Oct 24 14:56:42 2017 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Oct 24 16:16:08 2017 +0200
lvconvert: fixing extraction of vgname
Correction to function for extracting vgname out of lvconvert parameters.
Avoid repeating some checks.
Add code to handle generic options which may provide vgname in its argument and compare them all so they match to a single vgname (otherwise it's a error).
Extract default (envvar) vgname only when no position nor optional vgname is found.
Fixing regression instroduce with patchset started with commit:1e2420bca85da9a37570871cd70192e9ae831786 (2.02.169)
--- WHATS_NEW | 1 + tools/toollib.c | 107 +++++++++++++++++++----------------------------------- 2 files changed, 39 insertions(+), 69 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.176 - =================================== + Fix regression in more advanced vgname extraction in lvconvert (2.02.169). Allow lvcreate to be used for caching of _tdata LV. Avoid internal error when resizing cache type _tdata LV (not yet supported). Show original converted names when lvconverting LV to pool volume.
tools/toollib.c +38 -69
154 lines not on this page · raw message