diff options
author | Max Reitz <mreitz@redhat.com> | 2019-05-09 19:52:35 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-05-10 16:45:40 +0200 |
commit | 35ddd9300b81b70171da10134c36a7e22c845f16 (patch) | |
tree | 27b5a96368c48bdc1cc40bb7aded8d19e7f0dd62 /gdbstub.c | |
parent | 433e8e3b22021027ab8bc27f6fefa132fb33bfed (diff) | |
download | qemu-35ddd9300b81b70171da10134c36a7e22c845f16.zip qemu-35ddd9300b81b70171da10134c36a7e22c845f16.tar.gz qemu-35ddd9300b81b70171da10134c36a7e22c845f16.tar.bz2 |
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 'gdbstub.c')
0 files changed, 0 insertions, 0 deletions