From: Zdenek Kabelac Date: Fri, 6 Jan 2017 20:24:16 +0000 (+0100) Subject: vgchange: also -l is uint32 X-Git-Tag: v2_02_169~499 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=0d2a9ebec6b7555a09f26aa513b2a2f94fc19027;p=lvm2.git vgchange: also -l is uint32 --- diff --git a/test/shell/vgchange-usage.sh b/test/shell/vgchange-usage.sh index 08d811438..44e0fd9df 100644 --- a/test/shell/vgchange-usage.sh +++ b/test/shell/vgchange-usage.sh @@ -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 diff --git a/tools/args.h b/tools/args.h index d5f1186a1..a6fc77c19 100644 --- a/tools/args.h +++ b/tools/args.h @@ -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)