block: Catch simultaneous usage of options and their aliases
authorKevin Wolf <kwolf@redhat.com>
Thu, 18 Sep 2014 09:48:34 +0000 (11:48 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 25 Sep 2014 13:24:14 +0000 (15:24 +0200)
commit5abbf0ee4d87c695deb1c3fca9bb994b93a3e3be
treef4c1067304268d1d1d7e823b97e8d8ec0bcb2462
parent247147fbc107f818630c4044931de39b89c99342
block: Catch simultaneous usage of options and their aliases

While thinking about precedence of conflicting block device options from
different sources, I noticed that you can specify both an option and its
legacy alias at the same time (e.g. readonly=on,read-only=off). Rather
than specifying the order of precedence, we should simply forbid such
combinations.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
blockdev.c
tests/qemu-iotests/051
tests/qemu-iotests/051.out