Searched hist:dafe096057373d95847e1c99c2fece34be9fc5bb (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | block.c | diff dafe096057373d95847e1c99c2fece34be9fc5bb Thu Nov 16 06:00:01 CST 2017 Kevin Wolf <kwolf@redhat.com> 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>
|