]> git.proxmox.com Git - mirror_qemu.git/commit
file-posix: Support auto-read-only option
authorKevin Wolf <kwolf@redhat.com>
Mon, 8 Oct 2018 15:27:18 +0000 (17:27 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Nov 2018 14:09:55 +0000 (15:09 +0100)
commit64107dc044a54ebe46348ac0fe87584be2eb3e81
tree0a3962de9382c5b81cbe65f8eb7bc267e34c631e
parent6c2e581d4d7751f035e9bac0384703879c8a1538
file-posix: Support auto-read-only option

If read-only=off, but auto-read-only=on is given, open the file
read-write if we have the permissions, but instead of erroring out for
read-only files, just degrade to read-only.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/file-posix.c