]> xenbits.xensource.com Git - libvirt.git/commit
GetBlockInfo: Use the correct path to qemuOpenFile
authorJohn Ferlan <jferlan@redhat.com>
Mon, 14 Jul 2014 16:17:44 +0000 (12:17 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 14 Jul 2014 17:19:28 +0000 (13:19 -0400)
commit54d4619cdab6b9c80cd0f76408b44841775f06ea
treed3b3f80f2954e72c56fb2104aa0135042cf28c1e
parent58156f39cecc6704abbabf8fe6f8efa483c62a8e
GetBlockInfo: Use the correct path to qemuOpenFile

Commit id '3ea661de' refactored the code to use the 'disk->src->path'
instead of getting the path from virDomainDiskGetSource().  The one
call to qemuOpenFile() didn't use the disk source path, rather it used
the path as passed from the caller (in this case 'vda') - this caused
a failure with the virt-test/tp-libvirt as follows:

$ virsh domblkinfo virt-tests-vm1 vda
error: cannot stat file '/home/virt-test/shared/data/images/jeos-20-64.qcow2': Bad file descriptor

$
src/qemu/qemu_driver.c