Skip to contentSkip to conversation

master - lvresize: support more resized LVs

PATCH Zdenek Kabelac 1 participant 1 message Jun 23, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7092c6ba1084dcc029ffef918c0419ebdd41b5f4
Commit:        7092c6ba1084dcc029ffef918c0419ebdd41b5f4
Parent:        d44e653fe184a6c179a13998b41e13f737d4926c
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Jun 22 23:32:35 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Jun 23 14:59:27 2016 +0200

lvresize: support more resized LVs

Add code to support more LVs to be resized through a same code path using a single lvresize_params struct.
(Now it's used for thin-pool metadata resize,
next user will be snapshot virtual resize).

Update code to adjust percent amount resize for use_policies.

Properly activate inactive thin-pool in case of any pool resize as the command should not 'deffer' this operation to next activation.

---
 WHATS_NEW               |    1 +
 lib/metadata/lv_manip.c |  221 +++++++++++++++++++++++++----------------------
 2 files changed, 120 insertions(+), 102 deletions(-)
WHATS_NEW +1 -0
index 5e2cb5a..a24325f 100644
@@ -1,5 +1,6 @@
 Version 2.02.158 - 
 =================================
+  Pool metadata lvresize uses now same code as resize of normal volume.
   Log system error when locking dir cannot be accessed.
   Preserve monitoring status when updating thin-pool metadata.
   Rerurn 0 (inactive) when status cannot be queried in _lv_active().
lib/metadata/lv_manip.c +119 -102

361 lines not on this page · raw message