From 0d2a9ebec6b7555a09f26aa513b2a2f94fc19027 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 6 Jan 2017 21:24:16 +0100 Subject: [PATCH] vgchange: also -l is uint32 --- test/shell/vgchange-usage.sh | 5 +++++ tools/args.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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)