diff options
author | Fam Zheng <famz@redhat.com> | 2013-09-22 20:05:06 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-09-25 10:08:56 +0200 |
commit | dbecebddfa4932d1c83915bcb9b5ba5984eb91be (patch) | |
tree | 65e9d7177b76cdb9a0192ce7bc13e09d66597e9c /tests/qemu-iotests/051.out | |
parent | f828a4c8faa118e0ebab3e353ac6840f3b2a0318 (diff) | |
download | qemu-dbecebddfa4932d1c83915bcb9b5ba5984eb91be.zip qemu-dbecebddfa4932d1c83915bcb9b5ba5984eb91be.tar.gz qemu-dbecebddfa4932d1c83915bcb9b5ba5984eb91be.tar.bz2 |
block: fix backing file overriding
Providing backing.file.filename doesn't override backing file as expected:
$ x86_64-softmmu/qemu-system-x86_64 -drive \
file=/tmp/child.qcow2,backing.file.filename=/tmp/fake.qcow2
qemu-system-x86_64: -drive \
file=/tmp/child.qcow2,backing.file.filename=/tmp/fake.qcow2: could not
open disk image /tmp/child.qcow2: Can't specify 'file' and 'filename'
options at the same time
With
$ qemu-img info /tmp/child.qcow2
image: /tmp/child.qcow2
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 196K
cluster_size: 65536
backing file: /tmp/fake.qcow2
This fixes it by calling bdrv_get_full_backing_filename only if
backing.file.filename is not provided. Also save the backing file name
to bs->backing_file so the information is correct with HMP "info block".
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/051.out')
0 files changed, 0 insertions, 0 deletions