[PATCH v6 0/1] virtiofsd: Add support for FUSE_SYNCFS request

Greg Kurz posted 1 patch 2 years, 2 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220215181529.164070-1-groug@kaod.org
Maintainers: "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>
tools/virtiofsd/fuse_lowlevel.c       | 11 +++++++
tools/virtiofsd/fuse_lowlevel.h       | 13 ++++++++
tools/virtiofsd/passthrough_ll.c      | 44 +++++++++++++++++++++++++++
tools/virtiofsd/passthrough_seccomp.c |  1 +
4 files changed, 69 insertions(+)
[PATCH v6 0/1] virtiofsd: Add support for FUSE_SYNCFS request
Posted by Greg Kurz 2 years, 2 months ago
FUSE_SYNCFS allows the client to flush the host page cache.

v6: - drop ! announce_submounts part for now, only the root inode is
      synced in this case

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 (1):
  virtiofsd: Add basic support for FUSE_SYNCFS request

 tools/virtiofsd/fuse_lowlevel.c       | 11 +++++++
 tools/virtiofsd/fuse_lowlevel.h       | 13 ++++++++
 tools/virtiofsd/passthrough_ll.c      | 44 +++++++++++++++++++++++++++
 tools/virtiofsd/passthrough_seccomp.c |  1 +
 4 files changed, 69 insertions(+)

-- 
2.34.1