master - vgchange: also -l is uint32
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0d2a9ebec6b7555a09f26aa513b2a2f94fc19027 Commit: 0d2a9ebec6b7555a09f26aa513b2a2f94fc19027 Parent: 8a93cde75ef4a4b260d937c5924267d0eab31df3 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Jan 6 21:24:16 2017 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Jan 6 21:51:36 2017 +0100
vgchange: also -l is uint32
--- test/shell/vgchange-usage.sh | 5 +++++ tools/args.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-)
test/shell/vgchange-usage.sh +5 -0
@@ -63,6 +63,11 @@ check vg_field $vg max_pv 4294967295 # vgchange -l MaxLogicalVolumes check vg_field $vg max_lv 0 invalid vgchange -l -128 $vg +vgchange -l 4294967295 $vg +invalid vgchange -l 4294967296 $vg +invalid vgchange -l 18446744073709551615 $vg +invalid vgchange -l 18446744073709551616 $vg +check vg_field $vg max_lv 4294967295 vgchange -l 128 $vg check vg_field $vg max_lv 128
tools/args.h +2 -2
@@ -178,8 +178,8 @@ arg(interval_ARG, 'i', "interval", int_arg, 0, 0) arg(iop_version_ARG, 'i', "iop_version", NULL, 0, 0) arg(stripes_ARG, 'i', "stripes", int_arg, 0, 0) arg(stripesize_ARG, 'I', "stripesize", size_kb_arg, 0, 0) -arg(logicalvolume_ARG, 'l', "logicalvolume", int_arg, 0, 0) -arg(maxlogicalvolumes_ARG, 'l', "maxlogicalvolumes", int_arg, 0, 0) +arg(logicalvolume_ARG, 'l', "logicalvolume", uint32_arg, 0, 0) +arg(maxlogicalvolumes_ARG, 'l', "maxlogicalvolumes", uint32_arg, 0, 0) arg(extents_ARG, 'l', "extents", int_arg_with_sign_and_percent, 0, 0) arg(list_ARG, 'l', "list", NULL, 0, 0)arg (lvmpartition_ARG,'l' ,"lvmpartition" ,NULL ,0 ,0 )