Skip to content

virtiofsd: Do not setup mapping read-write always

Vivek Goyal virtio-fs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v11 patch 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtiofsd: During setup mapping, open file O_RDWR only if neededcontrib/virtiofsd/fuse_lowlevel.c contrib/virtiofsd/passthrough_ll.c+10 -120 replies
2/2virtiofsd: No need to promote O_WRONLY to O_RDWRcontrib/virtiofsd/passthrough_ll.c+0 -121 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Virtio-fs] [PATCH 0/2][V2] virtiofsd: Do not setup mapping read-write always

Setup mapping either read-only or read-write depending on what client has asked for. Also open file O_RDONLY for read-only mapping (and not O_RDWR). Otherwise files always get copied up on overlayfs.

Vivek Goyal (2):
virtiofsd: During setup mapping, open file O_RDWR only if needed
virtiofsd: No need to promote O_WRONLY to O_RDWR

 contrib/virtiofsd/fuse_lowlevel.c  |  5 +++--
 contrib/virtiofsd/passthrough_ll.c | 29 +++++++----------------------
 2 files changed, 10 insertions(+), 24 deletions(-)
Signature · 1 line
2.17.2