Eric Blake
265457845f
xml: output memory unit for clarity
...
Make it obvious to 'dumpxml' readers what unit we are using,
since our default of KiB for memory (1024) differs from qemu's
default of MiB; and differs from our use of bytes for storage.
Tests were updated via:
$ find tests/*data tests/*out -name '*.xml' | \
xargs sed -i 's/<\(memory\|currentMemory\|hard_limit\|soft_limit\|min_guarantee\|swap_hard_limit\)>/<\1 unit='"'KiB'>/"
$ find tests/*data tests/*out -name '*.xml' | \
xargs sed -i 's/<\(capacity\|allocation\|available\)>/<\1 unit='"'bytes'>/"
followed by a few fixes for the stragglers.
Note that with this patch, the RNG for <memory> still forbids
validation of anything except unit='KiB', since the code silently
ignores the attribute; a later patch will expand <memory> to allow
scaled input in the code and update the RNG to match.
* docs/schemas/basictypes.rng (unit): Add 'bytes'.
(scaledInteger): New define.
* docs/schemas/storagevol.rng (sizing): Use it.
* docs/schemas/storagepool.rng (sizing): Likewise.
* docs/schemas/domaincommon.rng (memoryKBElement): New define; use
for memory elements.
* src/conf/storage_conf.c (virStoragePoolDefFormat)
(virStorageVolDefFormat): Likewise.
* src/conf/domain_conf.h (_virDomainDef): Document unit used
internally.
* src/conf/storage_conf.h (_virStoragePoolDef, _virStorageVolDef):
Likewise.
* tests/*data/*.xml: Update all tests.
* tests/*out/*.xml: Likewise.
* tests/define-dev-segfault: Likewise.
* tests/openvzutilstest.c (testReadNetworkConf): Likewise.
* tests/qemuargv2xmltest.c (blankProblemElements): Likewise.
2012-03-07 18:24:43 -07:00
..
2012-01-17 12:22:19 +01:00
2012-01-17 12:09:51 -07:00
2012-01-17 12:09:51 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-07-11 11:47:14 +02:00
2012-03-07 18:24:43 -07:00
2011-11-30 11:36:11 -07:00
2012-03-07 18:24:43 -07:00
2011-11-29 12:26:21 -07:00
2012-03-07 18:24:43 -07:00
2011-02-08 11:43:45 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-09 10:55:53 -05:00
2012-03-07 18:24:43 -07:00
2012-01-09 10:55:53 -05:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-06-15 11:29:09 +02:00
2012-03-07 18:24:43 -07:00
2011-06-15 11:29:09 +02:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-06-15 11:29:09 +02:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-09 10:55:53 -05:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-02-04 09:17:01 -07:00
2012-03-07 18:24:43 -07:00
2011-02-03 21:14:50 -07:00
2012-03-07 18:24:43 -07:00
2011-11-03 12:01:05 +00:00
2012-03-07 18:24:43 -07:00
2011-11-03 12:01:05 +00:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-11-03 12:01:05 +00:00
2012-03-07 18:24:43 -07:00
2011-11-03 12:01:05 +00:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-17 11:39:19 +01:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-17 11:39:19 +01:00
2012-03-07 18:24:43 -07:00
2012-01-27 16:51:50 +01:00
2012-03-07 18:24:43 -07:00
2012-01-17 12:22:19 +01:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2012-01-17 12:22:19 +01:00
2012-03-07 18:24:43 -07:00
2012-01-17 12:22:19 +01:00
2012-03-07 18:24:43 -07:00
2012-01-27 16:51:50 +01:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2011-11-17 13:47:11 -07:00
2012-03-07 18:24:43 -07:00
2011-11-17 13:47:11 -07:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-03-29 22:13:46 +08:00
2012-03-07 18:24:43 -07:00
2011-03-03 07:45:31 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-13 10:08:15 +08:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-09-02 08:42:54 -06:00
2012-03-07 18:24:43 -07:00
2011-09-23 08:29:57 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-10-26 11:55:39 -06:00
2012-03-07 18:24:43 -07:00
2011-10-26 11:55:39 -06:00
2012-03-07 18:24:43 -07:00
2011-10-26 11:55:39 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-11-15 17:06:42 -07:00
2012-03-07 18:24:43 -07:00
2011-11-15 17:06:42 -07:00
2012-03-07 18:24:43 -07:00
2011-11-15 17:06:42 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-06-15 11:29:09 +02:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-09 10:55:53 -05:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-09 10:55:53 -05:00
2012-03-07 18:24:43 -07:00
2011-10-17 15:44:21 -06:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2012-02-28 14:28:21 +08:00
2012-03-07 18:24:43 -07:00
2012-02-28 14:28:21 +08:00
2012-03-07 18:24:43 -07:00
2011-09-05 07:03:04 -06:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-09 10:55:53 -05:00
2012-03-07 18:24:43 -07:00
2012-01-09 10:55:53 -05:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-17 15:37:42 -07:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-05-31 16:33:36 +02:00
2012-03-07 18:24:43 -07:00
2011-03-06 22:00:27 +08:00
2012-03-07 18:24:43 -07:00
2011-06-01 15:41:24 -06:00
2012-03-07 18:24:43 -07:00
2011-06-14 17:03:26 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-05-24 10:33:53 -04:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-09-02 23:39:03 +08:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-27 16:51:50 +01:00
2012-03-07 18:24:43 -07:00
2011-06-02 10:54:00 +01:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-24 17:06:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-09-21 16:53:06 +02:00
2012-03-07 18:24:43 -07:00
2011-10-01 11:48:28 -04:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2012-01-17 17:09:47 +08:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-03-05 23:24:34 -05:00
2012-03-07 18:24:43 -07:00
2012-01-17 17:09:47 +08:00
2012-03-07 18:24:43 -07:00
2012-01-17 17:09:47 +08:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-09-21 16:53:06 +02:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-06-20 15:17:43 +08:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-01-30 12:30:35 -05:00
2012-03-07 18:24:43 -07:00
2012-01-13 16:10:43 -07:00
2012-03-07 18:24:43 -07:00
2012-01-13 16:10:43 -07:00
2012-03-07 18:24:43 -07:00
2012-02-28 14:27:17 +08:00
2012-03-07 18:24:43 -07:00
2012-02-28 14:27:17 +08:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-12-30 10:38:37 +08:00
2012-03-07 18:24:43 -07:00
2011-12-30 10:57:59 +08:00
2012-03-07 18:24:43 -07:00
2011-12-30 10:38:37 +08:00
2012-03-07 18:24:43 -07:00
2012-02-06 12:04:33 -07:00
2012-03-07 18:24:43 -07:00
2011-12-30 10:38:37 +08:00
2012-03-07 18:24:43 -07:00
2011-12-30 10:38:37 +08:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-08-11 15:19:51 +08:00
2012-03-07 18:24:43 -07:00
2011-08-11 15:19:51 +08:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-10-01 11:48:28 -04:00
2012-03-07 18:24:43 -07:00
2011-09-05 15:03:27 +08:00
2012-03-07 18:24:43 -07:00
2011-09-05 15:03:27 +08:00
2012-03-07 18:24:43 -07:00
2011-10-01 11:48:28 -04:00
2012-03-07 18:24:43 -07:00
2011-10-01 11:48:28 -04:00
2012-03-07 18:24:43 -07:00
2011-10-01 11:48:28 -04:00
2012-03-07 18:24:43 -07:00
2011-09-05 15:03:27 +08:00
2012-03-07 18:24:43 -07:00
2011-10-01 11:48:28 -04:00
2012-03-07 18:24:43 -07:00
2012-01-31 13:36:23 -05:00
2012-03-07 18:24:43 -07:00
2011-04-06 10:05:14 -06:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00
2011-01-31 11:25:34 -07:00
2012-03-07 18:24:43 -07:00