Skip to contentSkip to conversation

master - report: make report options defined by "-o" groupable

PATCH Peter Rajnoha 1 participant 1 message Oct 30, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=df190dcfa58ee3c7cc9959da6af3ae22e9618992
Commit:        df190dcfa58ee3c7cc9959da6af3ae22e9618992
Parent:        e149fe7fdfd22b496bbd870d19412b0e9f090149
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Wed Oct 21 14:57:49 2015 +0200
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Fri Oct 30 15:47:56 2015 +0100

report: make report options defined by "-o" groupable

Also, besides making "-o" groupable, use string lists to store lists of options temporarily while processing all instances of the "-o" group.

---
 tools/args.h     |    2 +-
 tools/reporter.c |   61 ++++++++++++++++++++++++++++++++++++++++-------------
 2 files changed, 47 insertions(+), 16 deletions(-)
tools/args.h +1 -1
index c887774..210545e 100644
@@ -185,7 +185,7 @@ arg(name_ARG, 'n', "name", string_arg, 0)
 arg(nofsck_ARG, 'n', "nofsck", NULL, 0)
 arg(novolumegroup_ARG, 'n', "novolumegroup", NULL, 0)
 arg(oldpath_ARG, 'n', "oldpath", NULL, 0)
-arg(options_ARG, 'o', "options", string_arg, 0)
+arg(options_ARG, 'o', "options", string_arg, ARG_GROUPABLE)
 arg(sort_ARG, 'O', "sort", string_arg, 0)
 arg(maxphysicalvolumes_ARG, 'p', "maxphysicalvolumes", int_arg, 0)
 arg(permission_ARG, 'p', "permission", permission_arg, 0)
tools/reporter.c +46 -15

72 lines not on this page · raw message