diff options
author | 2019-05-09 19:52:35 +0200 | |
---|---|---|
committer | 2019-05-10 16:45:40 +0200 | |
commit | 35ddd9300b81b70171da10134c36a7e22c845f16 (patch) | |
tree | 27b5a96368c48bdc1cc40bb7aded8d19e7f0dd62 /hw/usb/dev-hub.c | |
parent | qcow2: Remove BDRVQcow2State.cluster_sectors (diff) | |
download | qemu-35ddd9300b81b70171da10134c36a7e22c845f16.tar.xz 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 'hw/usb/dev-hub.c')
0 files changed, 0 insertions, 0 deletions