summary refs log tree commit diff stats
path: root/target/openrisc/exception.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-05-09 19:52:35 +0200
committerKevin Wolf <kwolf@redhat.com>2019-05-10 16:45:40 +0200
commit35ddd9300b81b70171da10134c36a7e22c845f16 (patch)
tree27b5a96368c48bdc1cc40bb7aded8d19e7f0dd62 /target/openrisc/exception.c
parent433e8e3b22021027ab8bc27f6fefa132fb33bfed (diff)
downloadfocaccia-qemu-35ddd9300b81b70171da10134c36a7e22c845f16.tar.gz
focaccia-qemu-35ddd9300b81b70171da10134c36a7e22c845f16.zip
qemu-img: Allow rebase with no input base
Currently, without -u, you cannot add a backing file to an image when it
currently has none:

$ qemu-img rebase -b base.qcow2 foo.qcow2
qemu-img: Could not open old backing file '': The 'file' block driver
requires a file name

It is really simple to allow this, though (effectively by setting
old_backing_size to 0), so this patch does just that.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'target/openrisc/exception.c')
0 files changed, 0 insertions, 0 deletions