]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: blockjob: Print correct file name in error message
authorPeter Krempa <pkrempa@redhat.com>
Wed, 5 Feb 2014 17:40:39 +0000 (18:40 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 6 Feb 2014 09:43:57 +0000 (10:43 +0100)
commit5d2691cc4c0b8d64440b072c93f157f641c37a72
tree127a3530a873ca87fe415c36e6367868b751fe8c
parentcc3d335b768e1432ca7d1e8e580489983e587bd7
qemu: blockjob: Print correct file name in error message

When attempting a blockcommit from the top layer, the base argument
passed is NULL. This will be dereferenced when attempting a commit with
an empty image chain. Output the real volume path instead:

virsh blockcommit --verbose --path vda --domain DOMNAME --wait
error: invalid argument: top '/path/somefile' in chain for 'vda' has no backing file

instead of:

error: invalid argument: top '(null)' in chain for 'vda' has no backing file
src/qemu/qemu_driver.c