[libvirt] [PATCH 4/7] conf: Introduce new attribute for device address format

Eric Blake eblake at redhat.com
Mon Feb 27 17:30:22 UTC 2012


On 02/27/2012 04:58 AM, Osier Yang wrote:
> * src/conf/domain_conf.h: Add new member "target" to struct
>   _virDomainDeviceDriveAddress.
> 
> * src/conf/domain_conf.c: Parse and format "target"
> 
> * Lots of tests (.xml) in tests/domainsnapshotxml2xmlout,
>   tests/qemuxml2argvdata, tests/qemuxml2xmloutdata, and
>   tests/vmx2xmldata/ are modified for newly introduced
>   attribute "target" for address of "drive" type.
> ---
>  docs/formatdomain.html.in                          |   12 ++++++++++--
>  docs/schemas/domaincommon.rng                      |   10 ++++++++++
>  src/conf/domain_conf.c                             |   17 +++++++++++++----
>  src/conf/domain_conf.h                             |    1 +
>  tests/domainsnapshotxml2xmlout/disk_snapshot.xml   |   12 ++++++------

This modifies existing tests, but I didn't (quickly) see any addition of
a new test with a non-zero target.

>  tests/vmx2xmldata/vmx2xml-ws-in-the-wild-2.xml     |    4 ++--
>  194 files changed, 292 insertions(+), 264 deletions(-)

Evidence of my claim includes the fact that this patch did not add any
new files, and none of the tests added more lines than were removed.

> @@ -2016,7 +2017,6 @@ virDomainDeviceInfoFormat(virBufferPtr buf,
>      return 0;
>  }
>  
> -
>  static int
>  virDomainDevicePCIAddressParseXML(xmlNodePtr node,
>                                    virDomainDevicePCIAddressPtr addr)

Spurious whitespace change, but I can live with it.

I'm okay if you add an 8/7 with further tests of the new XML (or, I may
be surprised by 5-7/7 adding those tests).

-- 
Eric Blake   eblake at 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: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120227/a96db195/attachment-0001.sig>


More information about the libvir-list mailing list