提交 be6c35e4 编写于 作者: C Chris J Arges 提交者: John Ferlan

tests: add vol-qcow2-zerocapacity test to storagevolxml2argvtest

Add a testcase for the previous change to ensure zero capacity volumes can be
defined without a backing store.
Signed-off-by: NChris J Arges <chris.j.arges@canonical.com>
上级 c6eea540
qemu-img create -f qcow2 -o compat=0.10 0K
...@@ -284,6 +284,9 @@ mymain(void) ...@@ -284,6 +284,9 @@ mymain(void)
DO_TEST("pool-dir", "vol-qcow2-nocapacity", DO_TEST("pool-dir", "vol-qcow2-nocapacity",
"pool-dir", "vol-file", "pool-dir", "vol-file",
"qcow2-nocapacity-convert-prealloc", flags, FMT_OPTIONS); "qcow2-nocapacity-convert-prealloc", flags, FMT_OPTIONS);
DO_TEST("pool-dir", "vol-qcow2-zerocapacity",
NULL, NULL,
"qcow2-zerocapacity", 0, FMT_COMPAT);
DO_TEST_FULL(false, VIR_VOL_XML_PARSE_OPT_CAPACITY, DO_TEST_FULL(false, VIR_VOL_XML_PARSE_OPT_CAPACITY,
"pool-dir", "vol-qcow2-nocapacity-backing", NULL, NULL, "pool-dir", "vol-qcow2-nocapacity-backing", NULL, NULL,
"qcow2-nocapacity", 0, FMT_OPTIONS); "qcow2-nocapacity", 0, FMT_OPTIONS);
......
<volume>
<name>OtherDemo.img</name>
<target>
<format type="qcow2"/>
</target>
<capacity>0</capacity>
</volume>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册