qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/3] virtiofsd: Add support for FUSE_SYNCFS request
@ 2022-02-14 13:58 Greg Kurz
  2022-02-14 13:58 ` [PATCH v5 1/3] virtiofsd: Add support for FUSE_SYNCFS request with announce_submounts Greg Kurz
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Greg Kurz @ 2022-02-14 13:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: Sebastian Hasler, Dr. David Alan Gilbert, Greg Kurz, virtio-fs,
	Stefan Hajnoczi, Vivek Goyal

FUSE_SYNCFS allows the client to flush the host page cache.

v5: - split announce_submounts and ! announce_submounts to separate patches
      for easier review (but could be squashed together)
    - track submounts directly in lo_inode structure following the same
      logic as FUSE_ATTR_SUBMOUNT (i.e. directory with either st_dev or
      stx_mnt_id different from parent)

v4: - based on upstream linux FUSE_SYNCFS
    - added support for the '-o announce_submounts' case, i.e. client sends
      a FUSE_SYNCFS request for each submount (identified by its root inode)
    - adapted the case without '-o announce_submounts' so that syncfs() is
      no longer called with lo->mutex held

v3: - track submounts and do per-submount syncfs() (Vivek)
    - based on new version of FUSE_SYNCFS (still not upstream)
      https://listman.redhat.com/archives/virtio-fs/2021-May/msg00025.html

v2: - based on new version of FUSE_SYNCFS
      https://listman.redhat.com/archives/virtio-fs/2021-April/msg00166.html
    - propagate syncfs() errors to client (Vivek)

Greg Kurz (3):
  virtiofsd: Add support for FUSE_SYNCFS request with announce_submounts
  virtiofsd: Track submounts
  virtiofsd: Add support for FUSE_SYNCFS request without
    announce_submounts

 tools/virtiofsd/fuse_lowlevel.c       | 11 ++++
 tools/virtiofsd/fuse_lowlevel.h       | 13 ++++
 tools/virtiofsd/passthrough_ll.c      | 93 +++++++++++++++++++++++++--
 tools/virtiofsd/passthrough_seccomp.c |  1 +
 4 files changed, 114 insertions(+), 4 deletions(-)

-- 
2.34.1




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-02-15 17:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-14 13:58 [PATCH v5 0/3] virtiofsd: Add support for FUSE_SYNCFS request Greg Kurz
2022-02-14 13:58 ` [PATCH v5 1/3] virtiofsd: Add support for FUSE_SYNCFS request with announce_submounts Greg Kurz
2022-02-14 15:43   ` [Virtio-fs] " German Maglione
2022-02-14 16:02     ` Greg Kurz
2022-02-14 13:58 ` [PATCH v5 2/3] virtiofsd: Track submounts Greg Kurz
2022-02-14 15:43   ` Greg Kurz
2022-02-14 13:58 ` [PATCH v5 3/3] virtiofsd: Add support for FUSE_SYNCFS request without announce_submounts Greg Kurz
2022-02-14 18:27   ` Vivek Goyal
2022-02-14 18:56     ` Vivek Goyal
2022-02-14 19:09       ` Vivek Goyal
2022-02-15  9:18         ` Greg Kurz
2022-02-15 17:27           ` Vivek Goyal
2022-02-15  9:12     ` Greg Kurz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).