Skip to contentSkip to conversation

master - toollib: improve stripes args reading

PATCH Zdenek Kabelac 1 participant 1 message Nov 27, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=34eb082bbcd57deb954ff4221c9320126c2096f3
Commit:        34eb082bbcd57deb954ff4221c9320126c2096f3
Parent:        f70404addb0f46b7dd281c2e7e0f944aa7f27ae5
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Nov 27 10:26:35 2017 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Nov 27 10:34:30 2017 +0100

toollib: improve stripes args reading

Rewrite validation of stripes and stripe_size args into more readable sequential code.

Extend reading of stripes & stripes_size args so it better knows defaults for types like striped raid.

TODO: this should really be a value obtained for segtype structure and all the weird conditions and modification of stripes and stripe_size around lvm2 code should be dropped.

---
 WHATS_NEW       |    1 +
 tools/toollib.c |   66 ++++++++++++++++++++++++++++++++----------------------
 2 files changed, 40 insertions(+), 27 deletions(-)
WHATS_NEW +1 -0
index f78b6c2..9b9e7a8 100644
@@ -1,5 +1,6 @@
 Version 2.02.177 -
 ====================================
+  Enhance reading and validation of options stripes and stripes_size.
   Fix printing of default stripe size when user is not using stripes.
   Activation code for pvmove automatically discovers holding LVs for resume.
   Make a pvmove LV locking holder.
tools/toollib.c +39 -27

101 lines not on this page · raw message