summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKevin Wolf2017-11-16 13:00:01 +0100
committerKevin Wolf2017-11-17 18:06:12 +0100
commitdafe096057373d95847e1c99c2fece34be9fc5bb (patch)
tree53e829136ae173a7b68e1fafd3266e63d43508c5 /tests
parentqcow2: fix image corruption after committing qcow2 image into base (diff)
downloadqemu-dafe096057373d95847e1c99c2fece34be9fc5bb.tar.gz
qemu-dafe096057373d95847e1c99c2fece34be9fc5bb.tar.xz
qemu-dafe096057373d95847e1c99c2fece34be9fc5bb.zip
block: Fix permissions in image activation
Inactive images generally request less permissions for their image files than they would if they were active (in particular, write permissions). Activating the image involves extending the permissions, therefore. drv->bdrv_invalidate_cache() can already require write access to the image file, so we have to update the permissions earlier than that. The current code does it only later, so we have to move up this part. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions