[Virtio-fs] [virtiofsd PATCH v6 0/6] virtiofsd: support per-file DAX

Jeffle Xu jefflexu at linux.alibaba.com
Mon Oct 11 03:09:32 UTC 2021


The corresponding kernel patch set:
https://lore.kernel.org/all/20211011030052.98923-1-jefflexu@linux.alibaba.com/T/#t

changes since v5:
- add back support for .ioctl()
- add back negotiation during FUSE_INIT
- add '-o dax=[server|attr]' option to control the policy used by
  virtiofsd to determine whether DAX shall be enabled or not for
  specific file. Please refer to the commit log of patch 4/5/6 for
  more detailed information.


changes since v4:
- decide whether DAX shall be enabled or not solely depending on file
  size (DAX is disabled for files smaller than 32KB)
- negotiation during FUSE_INIT is droped
- drop support for .ioctl() for passthrough

changes since v2/v3:
Patch 4 in v2 is incomplete by mistake and it will fail to be compiled.
I had ever sent a seperate patch 4 of v3. Now I send the whole complete
set in v4. Except for this, there's no other diferrence.



Jeffle Xu (6):
  virtiofsd: add .ioctl() support
  virtiofsd: support per-file DAX in fuse protocol
  virtiofsd: negotiate per-file DAX in FUSE_INIT
  virtiofsd: add 'dax=' option
  virtiofsd: implement file size based dax policy
  virtiofsd: implement persistent inode attribute based dax policy

 include/standard-headers/linux/fuse.h |   2 +
 tools/virtiofsd/fuse_common.h         |   5 ++
 tools/virtiofsd/fuse_lowlevel.c       |   3 +
 tools/virtiofsd/helper.c              |   7 ++
 tools/virtiofsd/passthrough_ll.c      | 125 ++++++++++++++++++++++++++
 tools/virtiofsd/passthrough_seccomp.c |   1 +
 6 files changed, 143 insertions(+)

-- 
2.27.0




More information about the Virtio-fs mailing list