This set of patches adds readdir() support for virtio-fs: the first
patch contains minor fixes, while the second and third lay the ground
work for the fourth which actually implements the readdir functionality.

While working on this, I noticed that the readdir implementations for
other OSv filesystems (e.g. ROFS, devfs, pseudofs) don't set the d_off
field of the dirent struct they return (this patch _does_ set it). Is
there a reason behind this pattern? If so, I will be glad to align this
implementation with the rest.

As always, any feedback is more than welcome.

Fotis Xenakis (4):
  virtio-fs: fix allocation failure condition
  virtio-fs: expose FUSE reply length
  virtio-fs: use FUSE_OPENDIR and FUSE_RELEASEDIR
  virtio-fs: implement readdir

 fs/virtiofs/virtiofs_dax.cc    |   4 +-
 fs/virtiofs/virtiofs_i.hh      |   8 ++-
 fs/virtiofs/virtiofs_vfsops.cc |  16 +++--
 fs/virtiofs/virtiofs_vnops.cc  | 103 ++++++++++++++++++++++++++++-----
 4 files changed, 106 insertions(+), 25 deletions(-)

-- 
2.27.0

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/AM0PR03MB62928C209CFA5D9AF2F1731BA67A0%40AM0PR03MB6292.eurprd03.prod.outlook.com.

Reply via email to