Skip to content

Even more read-write/read-only fixes and cleanup

Naphtali Sprei qemu-devel 1 version Applied

Status from this message: Applied all. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3No need anymoe for bdrv_set_read_onlyblock.c block.h+0 -81 reply
1/3No need anymore for bdrv_set_read_onlyblock.c block.h+0 -80 replies
2/3Ask for read-write permissions when opening filesblock/qcow2.c block/vvfat.c qemu-img.c+4 -40 replies
2/3Ask for read-write permissions when opening files where neededblock/qcow2.c block/vvfat.c qemu-img.c+4 -40 replies
3/3Read-only device changed to opens it's file for read-only.block/bochs.c block/parallels.c+4 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] Even more read-write/read-only fixes and cleanup

A comment from Christoph Hellwig made me check (and fix) some stuff.
I'm afraid there are some more callers that needs to explicitly ask for read-write permissions. I'd like to get comments about that.

P.S. The qcow2 bug (I introduced) in pre-allocate showed me there's a need to check return value.

Naphtali Sprei (3):
No need anymore for bdrv_set_read_only
Ask for read-write permissions when opening files where needed Read-only device changed to opens it's file for read-only.

 block.c           |    7 -------
 block.h           |    1 -
 block/bochs.c     |    6 ++----
 block/parallels.c |    6 ++----
 block/qcow2.c     |    2 +-
 block/vvfat.c     |    2 +-
 qemu-img.c        |    4 ++--
 7 files changed, 8 insertions(+), 20 deletions(-)