summaryrefslogtreecommitdiffstats
path: root/tests/qemu-iotests/232.out
Commit message (Collapse)AuthorAgeFilesLines
* qemu-iotests: Fix 232 for non-qcow2Kevin Wolf2019-03-191-20/+0Star
| | | | | | | | | | | 232 is marked as generic, but commit 12efe428c9e added code that assumes qcow2. What the new test really needs is backing files and support for updating the backing file link (.bdrv_change_backing_file). Split the non-generic code into a new test case 247 and make it work with qed, too. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* file-posix: Make auto-read-only dynamicKevin Wolf2019-03-121-6/+6
| | | | | | | | | | | | | | | | | | | | | Until now, with auto-read-only=on we tried to open the file read-write first and if that failed, read-only was tried. This is actually not good enough for libvirt, which gives QEMU SELinux permissions for read-write only as soon as it actually intends to write to the image. So we need to be able to switch between read-only and read-write at runtime. This patch makes auto-read-only dynamic, i.e. the file is opened read-only as long as no user of the node has requested write permissions, but it is automatically reopened read-write as soon as the first writer is attached. Conversely, if the last writer goes away, the file is reopened read-only again. bs->read_only is no longer set for auto-read-only=on files even if the file descriptor is opened read-only because it will be transparently upgraded as soon as a writer is attached. This changes the output of qemu-iotests 232. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* qemu-iotests: commit to backing file with auto-read-onlyKevin Wolf2019-03-121-0/+20
| | | | | Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
* qemu-iotests: Test auto-read-only with -drive and -blockdevKevin Wolf2018-11-051-0/+59
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>