]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: treat 'aio' like 'raw' at parse time
authorEric Blake <eblake@redhat.com>
Fri, 28 Sep 2012 23:48:58 +0000 (17:48 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 19 Oct 2012 23:35:09 +0000 (17:35 -0600)
commit41e0edaf84a9ecdce0c4868656ff899989bb51fa
tree8fad7fc48be512bcf956b10dafb8eef2383fa07b
parentf772b3d91fd842641a92c3816809ef671434cc84
storage: treat 'aio' like 'raw' at parse time

We have historically allowed 'aio' as a synonym for 'raw' for
back-compat to xen, but since a future patch will move to using
an enum value, we have to pick one to be our preferred output
name.  This is a slight change in the output XML, but the sexpr
and xm outputs should still be identical, and the input XML can
still use either form.

* src/conf/domain_conf.c (virDomainDiskDefForeachPath): Move aio
back-compat...
(virDomainDiskDefParseXML): ...to parse time.
* src/xenxs/xen_sxpr.c (xenParseSxprDisks, xenFormatSxprDisk): ...and
to output time.
* src/xenxs/xen_xm.c (xenParseXM, xenFormatXMDisk): Likewise.
* tests/sexpr2xmldata/sexpr2xml-*.xml: Update tests.
src/conf/domain_conf.c
src/xenxs/xen_sxpr.c
src/xenxs/xen_xm.c
tests/sexpr2xmldata/sexpr2xml-curmem.xml
tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.xml
tests/sexpr2xmldata/sexpr2xml-disk-drv-blktap-raw.xml
tests/sexpr2xmldata/sexpr2xml-disk-drv-blktap2-raw.xml