Re: [libvirt] [PATCH] Make virDomainGetXMLDesc output cache settings even if no special driverName is set

2010-03-09 Thread Daniel Veillard
On Mon, Mar 08, 2010 at 09:46:14PM +0100, Soren Hansen wrote: If a special cache strategy for a disk has been specified in a domain definition, but no driverName has been set, virDomainGetXMLDesc will not include the driver tag at all. This patch makes sure that the driver tag is included if

[libvirt] [PATCH] Make virDomainGetXMLDesc output cache settings even if no special driverName is set

2010-03-08 Thread Soren Hansen
If a special cache strategy for a disk has been specified in a domain definition, but no driverName has been set, virDomainGetXMLDesc will not include the driver tag at all. This patch makes sure that the driver tag is included if any of the settings it can contain has been set. Signed-off-by:

Re: [libvirt] [PATCH] Make virDomainGetXMLDesc output cache settings even if no special driverName is set

2010-03-08 Thread Eric Blake
On 03/08/2010 01:46 PM, Soren Hansen wrote: If a special cache strategy for a disk has been specified in a domain definition, but no driverName has been set, virDomainGetXMLDesc will not include the driver tag at all. ... -if (def-driverName) { -virBufferVSprintf(buf,