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 -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list