[libvirt] [PATCH] qemu: fix block stats for virtio and scsi

Cole Robinson crobinso at redhat.com
Tue Oct 7 19:03:10 UTC 2008


Guido Günther wrote:
> On Thu, Oct 02, 2008 at 09:06:25PM +0100, Daniel P. Berrange wrote:
>> I think this needs to use the virDiskNameToIndex() method to
>> extract the index instead.
> Corrected pach attached. I don't know how devices are called when using
> xenner so I left that out.
>  -- Guido
> 
> 

There is actually a function in qemu_driver.c called
qemudDiskDeviceName that handles a lot of this already,
it's used for generating the connect/eject cdrom names.
It's probably best to reuse that.

Thanks,
Cole




More information about the libvir-list mailing list