]> sourceware.org Git - lvm2.git/commit
lvcreate/lvresize: the --size option accepts signed values
authorDavid Teigland <teigland@redhat.com>
Thu, 2 Mar 2017 18:53:01 +0000 (12:53 -0600)
committerDavid Teigland <teigland@redhat.com>
Thu, 2 Mar 2017 18:53:01 +0000 (12:53 -0600)
commitb7831fc14ae9a7b35c1d814486f45f4b3cbadc8b
tree23c14d03cf582e21855a32965fd395744e560f28
parent70c1fa3764639afd0d2e81968c4495bb3f3c6a73
lvcreate/lvresize: the --size option accepts signed values

There was confusion in the code about whether or not the
--size option accepted a sign.  Make it consistent and clear
that it does.

This exposes a new problem in that an option can only
accept one value type, e.g. --size can only accept a
signed number, it cannot accept a positive or negative
number for some commands and reject negative numbers for
others.

In practice, lvcreate accepts only positive --size
values and lvresize accepts positive or negative --size
values.  There is currently no way to encode this
difference.  Until that is fixed, the man page output
is hacked to avoid printing the [+|-] prefix for sizes
in lvcreate.
tools/args.h
tools/command-lines.in
tools/command.c
tools/lvmcmdline.c
tools/tools.h
tools/vals.h
This page took 0.038659 seconds and 5 git commands to generate.