Re: [Qemu-devel] [PATCH v2 5/8] file-posix: Support auto-read-only option

2018-10-12 Thread Eric Blake
On 10/12/18 6:55 AM, Kevin Wolf wrote: 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 --- block/file-posix.c | 13 + 1

[Qemu-devel] [PATCH v2 5/8] file-posix: Support auto-read-only option

2018-10-12 Thread Kevin Wolf
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 --- block/file-posix.c | 13 + 1 file changed, 13 insertions(+) diff --git