[libvirt] [PATCH 05/34] Set default disk controller/bus/unit props

Daniel Veillard veillard at redhat.com
Fri Jan 15 12:57:28 UTC 2010

On Fri, Jan 08, 2010 at 05:23:01PM +0000, Daniel P. Berrange wrote:
> When parsing the <disk> element specification, if no <address>
> is provided for the disk, then automatically assign one based on
> the <target dev='sdXX'/> device name. This provides for backwards
> compatability with existing applications using libvirt, while also
> allowing new apps to have complete fine grained control.
> * src/conf/domain_conf.h, src/conf/domain_conf.c,
>   src/libvirt_private.syms: Add virDomainDiskDefAssignAddress()
>   for assigning a controller/bus/unit address based on disk target
> * src/qemu/qemu_conf.c: Call virDomainDiskDefAssignAddress() after
>   generating XML from ARGV
> * tests/qemuxml2argvdata/*.xml: Add in drive address information
>   to all XML files



Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

More information about the libvir-list mailing list