summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorMax Reitz2018-05-09 23:00:17 +0200
committerMax Reitz2018-06-11 16:18:45 +0200
commit1f996683ad908fd41c572221a63d9fc31ce04d07 (patch)
tree889df5e306294308aa09c9a2a87e104ec7f737ac /block
parentiotests: Add creation test to 153 (diff)
downloadqemu-1f996683ad908fd41c572221a63d9fc31ce04d07.tar.gz
qemu-1f996683ad908fd41c572221a63d9fc31ce04d07.tar.xz
qemu-1f996683ad908fd41c572221a63d9fc31ce04d07.zip
qemu-img: Amendment support implies create_opts
Instead of checking whether a driver has a non-NULL create_opts we should check whether it supports image amendment in the first place. If it does, it must have create_opts. On the other hand, if it does not have create_opts (so it does not support amendment either), the error message "does not support any options" is a bit useless. Stating clearly that the driver has no amendment support whatsoever is probably better. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20180509210023.20283-2-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions