Eric Blake
8fb446754d
conf: fix omission of <driver> in domain dumpxml
...
I noticed that depending on the <driver> attributes the user passed
in, the output may omit the <driver> element altogether. For example,
the rerror_policy has had this problem since commit 4bb4109 in Oct
2011. But in adding testsuite coverage to expose it, I found another
problem: the C code is just fine without a driver name, but the
XML validator required either a name or a cache mode.
* src/conf/domain_conf.c (virDomainDiskDefFormat): Update
conditional.
* docs/schemas/domaincommon.rng (diskDriver): Simplify.
* tests/qemuxml2argvdata/qemuxml2argv-disk-drive-copy-on-read.xml:
* tests/qemuxml2argvdata/qemuxml2argv-disk-drive-copy-on-read.args:
New files.
* tests/qemuxml2argvdata/qemuxml2argv-disk-drive-discard.xml:
Enhance test.
* tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-drive-discard.xml:
Likewise.
* tests/qemuxml2argvtest.c (mymain): New test.
* tests/qemuxml2xmltest.c (mymain): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2014-04-16 10:49:07 +02:00
..
2012-02-01 16:28:17 -07:00
2012-02-03 15:27:16 -07:00
2012-02-03 15:27:16 -07:00
2014-03-27 06:58:46 -06:00
2014-04-16 10:49:07 +02:00
2013-05-03 15:56:15 +01:00
2013-08-09 17:13:02 +01:00
2013-10-04 13:38:57 -04:00
2014-01-06 21:41:02 -07:00
2013-12-02 10:21:26 +08:00
2014-03-18 14:29:22 +00:00
2014-03-13 06:54:56 +01:00
2013-05-03 15:56:15 +01:00
2011-10-28 10:11:16 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-12-02 11:59:18 -07:00
2013-08-09 17:13:02 +01:00
2013-05-03 15:56:15 +01:00
2013-12-02 10:21:26 +08:00
2014-03-27 06:52:20 -06:00
2013-07-09 16:15:29 -06:00
2013-07-01 11:08:58 +08:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2014-01-15 09:12:25 -07:00
2014-03-01 23:44:58 +04:00
2014-03-01 23:44:58 +04:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2014-02-12 17:52:47 +00:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 16:58:46 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2014-03-03 17:41:26 +04:00
2013-05-16 16:28:53 +01:00
2013-09-29 18:40:36 +08:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-12-02 10:21:26 +08:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2014-02-24 18:55:00 +01:00
2014-02-20 14:53:36 -05:00
2013-08-15 11:40:50 +02:00
2014-03-13 18:30:09 -04:00
2014-02-14 16:47:14 +01:00
2014-02-14 11:07:29 +01:00
2014-03-05 09:51:24 +01:00
2013-05-03 15:56:15 +01:00
2013-08-09 17:13:02 +01:00
2013-01-18 15:36:38 +01:00
2013-05-03 15:56:15 +01:00
2014-02-04 10:43:15 -07:00
2013-07-09 11:49:20 -06:00
2013-07-09 11:49:20 -06:00
2014-03-25 14:58:41 +01:00
2014-02-18 14:46:49 +01:00
2013-06-25 01:13:16 +02:00
2014-03-01 23:44:58 +04:00
2013-08-23 08:12:26 +02:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2013-03-04 17:36:03 -05:00
2013-03-04 17:36:03 -05:00
2014-01-27 08:42:09 +01:00
2012-06-18 20:10:29 +01:00
2013-05-03 15:56:15 +01:00
2014-03-18 14:29:22 +00:00
2013-09-23 14:16:45 +02:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2013-07-30 07:07:33 -06:00
2013-10-30 17:30:12 +01:00
2014-04-01 15:29:53 +08:00
2011-10-28 10:11:16 +01:00
2014-01-30 15:37:38 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-12-02 10:21:26 +08:00
2012-08-10 10:58:38 +02:00
2013-09-12 17:18:32 +08:00
2013-10-15 11:33:01 +01:00
2013-11-26 18:37:09 +08:00
2013-05-03 16:58:46 +01:00
2014-03-01 23:44:58 +04:00
2014-04-01 08:44:34 +02:00
2011-10-28 10:11:16 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-07 11:19:04 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-07 15:29:37 +01:00