libvirt/tests/qemublocktestdata/xml2json
Peter Krempa 2c4c347c4b qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain
To allow using -blockdev with blockjobs QEMU needs to reopen files in
read-write mode when modifying the backing chain. To achieve this we
need to use 'auto-read-only' for the backing files rather than the
normal 'read-only' property. That way qemu knows that the files need to
be reopened.

Note that the format drivers (e.g. qcow2) are still opened with the
read-only property enabled when being a member of the backing chain
since they are supposed to be immutable unless a block job is started.

QEMU v4.0 (since commit 23dece19da4) allows also dynamic behaviour for
auto-read-only which allows us to use sVirt as we only grant write
permissions to files when doing a blockjob.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2019-07-18 17:59:34 +02:00
..
block-raw-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
block-raw-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
block-raw-noopts.xml tests: qemublock: Test handling of block devices 2018-05-07 16:12:01 +02:00
block-raw-reservations-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
block-raw-reservations.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
block-raw-reservations.xml qemu: block: Add support for 'pr-manager' in qemuBlockStorageSourceGetFileProps 2018-06-05 08:13:59 +02:00
dir-fat-cache-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
dir-fat-cache.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
dir-fat-cache.xml tests: qemublock: Test handling of all cache modes 2018-05-07 16:09:30 +02:00
dir-fat-floppy-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
dir-fat-floppy.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
dir-fat-floppy.xml tests: qemublock: Add test-case for the 'vvfat' driver in qemu 2018-05-07 15:55:16 +02:00
dir-fat-readonly-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
dir-fat-readonly.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
dir-fat-readonly.xml tests: qemublock: Add test-case for the 'vvfat' driver in qemu 2018-05-07 15:55:16 +02:00
file-backing_basic-aio_threads-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-aio_threads.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-aio_threads.xml tests: qemublock: Add test cases for 'aio' options of 'file' storage 2018-05-07 15:57:52 +02:00
file-backing_basic-cache-directsync-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-cache-directsync.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-cache-directsync.xml tests: qemublock: Test handling of all cache modes 2018-05-07 16:09:30 +02:00
file-backing_basic-cache-none-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-cache-none.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-cache-none.xml tests: qemublock: Test handling of all cache modes 2018-05-07 16:09:30 +02:00
file-backing_basic-cache-unsafe-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-cache-unsafe.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-cache-unsafe.xml tests: qemublock: Test handling of all cache modes 2018-05-07 16:09:30 +02:00
file-backing_basic-cache-writeback-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-cache-writeback.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-cache-writeback.xml tests: qemublock: Test handling of all cache modes 2018-05-07 16:09:30 +02:00
file-backing_basic-cache-writethrough-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-cache-writethrough.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-cache-writethrough.xml tests: qemublock: Test handling of all cache modes 2018-05-07 16:09:30 +02:00
file-backing_basic-detect-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-detect.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-detect.xml tests: qemublock: Test handling of 'unmap' and 'detect-zeroes' options 2018-05-07 16:05:31 +02:00
file-backing_basic-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-noopts.xml tests: qemublock: Add tests for basic backing chain formats 2018-05-07 15:53:57 +02:00
file-backing_basic-unmap-detect-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-unmap-detect.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-unmap-detect.xml tests: qemublock: Test handling of 'unmap' and 'detect-zeroes' options 2018-05-07 16:05:31 +02:00
file-backing_basic-unmap-ignore-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-unmap-ignore.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-unmap-ignore.xml tests: qemublock: Test handling of 'unmap' and 'detect-zeroes' options 2018-05-07 16:05:31 +02:00
file-backing_basic-unmap-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-backing_basic-unmap.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-backing_basic-unmap.xml tests: qemublock: Test handling of 'unmap' and 'detect-zeroes' options 2018-05-07 16:05:31 +02:00
file-bochs-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-bochs-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-bochs-noopts.xml tests: qemublock: Add tests for all other format without special options 2018-05-07 15:53:12 +02:00
file-cloop-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-cloop-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-cloop-noopts.xml tests: qemublock: Add tests for all other format without special options 2018-05-07 15:53:12 +02:00
file-dmg-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-dmg-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-dmg-noopts.xml tests: qemublock: Add tests for all other format without special options 2018-05-07 15:53:12 +02:00
file-ploop-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-ploop-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-ploop-noopts.xml tests: qemublock: Add tests for all other format without special options 2018-05-07 15:53:12 +02:00
file-qcow2-backing-chain-encryption-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-qcow2-backing-chain-encryption.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-qcow2-backing-chain-encryption.xml tests: qemublock: Switch to qcow2+luks in test files 2018-06-05 08:11:12 +02:00
file-qcow2-backing-chain-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-qcow2-backing-chain-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-qcow2-backing-chain-noopts.xml tests: qemublock: basic qcow2 tests 2018-05-07 16:01:09 +02:00
file-qcow2-backing-chain-unterminated-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-qcow2-backing-chain-unterminated.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-qcow2-backing-chain-unterminated.xml tests: qemublock: basic qcow2 tests 2018-05-07 16:01:09 +02:00
file-raw-aio_native-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-raw-aio_native.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-raw-aio_native.xml tests: qemublock: Add test cases for 'aio' options of 'file' storage 2018-05-07 15:57:52 +02:00
file-raw-luks-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-raw-luks.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-raw-luks.xml tests: qemublock: Add test for raw luks disk format 2018-05-07 15:58:51 +02:00
file-raw-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-raw-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-raw-noopts.xml tests: qemublock: Add basic 'raw' file test 2018-05-07 15:51:45 +02:00
file-vdi-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-vdi-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-vdi-noopts.xml tests: qemublock: Add tests for all other format without special options 2018-05-07 15:53:12 +02:00
file-vhd-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-vhd-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-vhd-noopts.xml tests: qemublock: Add tests for all other format without special options 2018-05-07 15:53:12 +02:00
file-vpc-noopts-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
file-vpc-noopts.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
file-vpc-noopts.xml tests: qemublock: Add tests for all other format without special options 2018-05-07 15:53:12 +02:00
network-nbd-tls-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
network-nbd-tls.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
network-nbd-tls.xml tests: qemublock: Test NBD with TLS in the JSON generator 2018-06-05 08:14:00 +02:00
network-qcow2-backing-chain-cache-unsafe-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
network-qcow2-backing-chain-cache-unsafe.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
network-qcow2-backing-chain-cache-unsafe.xml tests: qemublock: Test handling of all cache modes 2018-05-07 16:09:30 +02:00
network-qcow2-backing-chain-encryption_auth-srconly.json tests: qemublock: Add testing of pure disk source specification JSON generator 2019-07-18 17:59:34 +02:00
network-qcow2-backing-chain-encryption_auth.json qemu: block: Use 'auto-read-only' instead of 'read-only' for backing chain 2019-07-18 17:59:34 +02:00
network-qcow2-backing-chain-encryption_auth.xml tests: qemublock: Switch to qcow2+luks in test files 2018-06-05 08:11:12 +02:00
nodename-long-format.xml
nodename-long-protocol.xml