Skip to content

RFC fuse: LOOKUP_HANDLE operation

Luis Henriques linux-fsdevel lkml 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest8 patches 32 repliesApplied
  2. v2 RFC6 patches 79 repliesSuperseded
  3. v1 RFC3 patches 4 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/8fuse: simplify fuse_lookup_name() interfacefs/fuse/dir.c fs/fuse/fuse_i.h fs/fuse/inode.c+22 -232 replies
2/8fuse: export extend_arg() and factor out fuse_ext_size()fs/fuse/dir.c fs/fuse/fuse_i.h+9 -70 replies
3/8fuse: store index of the variable length argumentfs/fuse/compound.c fs/fuse/cuse.c fs/fuse/dev.c +7 more+15 -52 replies
4/8fuse: drop unnecessary argument from fuse_lookup_init()fs/fuse/dir.c+4 -51 reply
5/8fuse: extract helper functions from fuse_do_statx()fs/fuse/dir.c+53 -350 replies
6/8fuse: implementation of lookup_handle+statx compound operationfs/fuse/dir.c fs/fuse/fuse_i.h fs/fuse/inode.c +2 more+355 -3523 replies
7/8fuse: export fuse_open_args_fill() helper functionfs/fuse/file.c fs/fuse/fuse_i.h+8 -40 replies
8/8fuse: implementation of mkobj_handle+statx+open compound operationfs/fuse/dir.c include/uapi/linux/fuse.h+220 -12 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC PATCH v3 0/8] fuse: LOOKUP_HANDLE operation

Hi,

I'm sending a new version of my work on lookup_handle, even though it's still incomplete. As suggested elsewhere, it is now based on compound commands and thus it sits on top of Horst's patchset [0]. Also, because this version is a complete re-write of the approach presented in my previous RFC [1] I'm not going to detail what changed.

Here's a few notes:

- The code isn't yet fully testable as there are several pieces missing. For example, the FUSE_TMPFILE and FUSE_READDIRPLUS operations are not yet implemented. The NFS-related changes have also been dropped in this revision.

- There are several details still to be sorted out in the compound operations. For example, the nodeid for the statx operation in the lookup+statx is set to FUSE_ROOT_ID.

- The second operation (mkobj_handle+statx+open) is still draft (or maybe just wrong!). It's not handling flags correctly, and the error handling has to be better thought out.

- Some of the patches in this set could probably be picked independently (e.g. patch 4 or even patch 1)

So, why am I sending this broken and incomplete patchset? Well, simply because I'd feel more confidence getting this approach validated. I don't expect any through review, but I would appreciate feedback on anything that would help me correct major flaws.

[0] https://lore.kernel.org/all/[email protected]
[1] https://lore.kernel.org/all/[email protected]

Cheers,

Signature · 25 lines
Luis

Luis Henriques (8):
  fuse: simplify fuse_lookup_name() interface
  fuse: export extend_arg() and factor out fuse_ext_size()
  fuse: store index of the variable length argument
  fuse: drop unnecessary argument from fuse_lookup_init()
  fuse: extract helper functions from fuse_do_statx()
  fuse: implementation of lookup_handle+statx compound operation
  fuse: export fuse_open_args_fill() helper function
  fuse: implementation of mkobj_handle+statx+open compound operation

 fs/fuse/compound.c        |   1 +
 fs/fuse/cuse.c            |   1 +
 fs/fuse/dev.c             |   4 +-
 fs/fuse/dir.c             | 650 +++++++++++++++++++++++++++++++++-----
 fs/fuse/file.c            |   3 +-
 fs/fuse/fuse_i.h          |  42 ++-
 fs/fuse/inode.c           |  50 ++-
 fs/fuse/ioctl.c           |   1 +
 fs/fuse/readdir.c         |   2 +-
 fs/fuse/virtio_fs.c       |   6 +-
 fs/fuse/xattr.c           |   2 +
 include/uapi/linux/fuse.h |  25 +-
 12 files changed, 679 insertions(+), 108 deletions(-)