--- /dev/null
+qemu-img convert -f raw -O raw /var/lib/libvirt/images/test.iso \
+/var/lib/libvirt/images/sparse.img
--- /dev/null
+qemu-img create -f raw /var/lib/libvirt/images/test.iso 1024K
"pool-dir", "vol-qcow2-nocapacity-backing", NULL, NULL,
"qcow2-nocapacity", 0, FMT_OPTIONS);
+ DO_TEST("pool-dir", "vol-file-iso",
+ NULL, NULL,
+ "iso", 0, FMT_OPTIONS);
+ DO_TEST("pool-dir", "vol-file",
+ "pool-dir", "vol-file-iso",
+ "iso-input", 0, FMT_OPTIONS);
+
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
--- /dev/null
+<volume>
+ <name>test.iso</name>
+ <source/>
+ <capacity unit="MiB">1</capacity>
+ <allocation unit="MiB">1</allocation>
+ <target>
+ <format type='iso'/>
+ <path>/var/lib/libvirt/images/test.iso</path>
+ </target>
+</volume>
--- /dev/null
+<volume type='file'>
+ <name>test.iso</name>
+ <source>
+ </source>
+ <capacity unit='bytes'>1048576</capacity>
+ <allocation unit='bytes'>1048576</allocation>
+ <target>
+ <path>/var/lib/libvirt/images/test.iso</path>
+ <format type='iso'/>
+ </target>
+</volume>
DO_TEST("pool-dir", "vol-file");
DO_TEST("pool-dir", "vol-file-naming");
DO_TEST("pool-dir", "vol-file-backing");
+ DO_TEST("pool-dir", "vol-file-iso");
DO_TEST("pool-dir", "vol-qcow2");
DO_TEST("pool-dir", "vol-qcow2-1.1");
DO_TEST("pool-dir", "vol-qcow2-lazy");