OSDN Git Service

block: Error out on image creation with conflicting size options
authorKevin Wolf <kwolf@redhat.com>
Tue, 26 Nov 2019 15:45:49 +0000 (16:45 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 18 Dec 2019 10:20:57 +0000 (11:20 +0100)
commitf6dc1c31d3801dcbdf0c56574f9ff4f05180810c
treea55c541dd526950abc4d6197c4b24068f7291556
parent0da7d13a4c2ff8ac40aeb1bd24c5564c82624555
block: Error out on image creation with conflicting size options

If both the create options (qemu-img create -o ...) and the size
parameter were given, the size parameter was silently ignored. Instead,
make specifying two sizes an error.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c
tests/qemu-iotests/049
tests/qemu-iotests/049.out