[libvirt] [PATCH] GetBlockInfo: Use the correct path to qemuOpenFile

Eric Blake eblake at redhat.com
Mon Jul 14 16:54:06 UTC 2014


On 07/14/2014 10:30 AM, John Ferlan wrote:
> 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
> 
> $
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> 
> NOTE: Luckily this hasn't crept into a release...

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140714/8c60e215/attachment-0001.sig>


More information about the libvir-list mailing list