[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240816-delstid-v1-0-c221c3dc14cd@kernel.org>
Date: Fri, 16 Aug 2024 08:42:06 -0400
From: Jeff Layton <jlayton@...nel.org>
To: Chuck Lever <chuck.lever@...cle.com>, Neil Brown <neilb@...e.de>, 
 Olga Kornievskaia <kolga@...app.com>, Dai Ngo <Dai.Ngo@...cle.com>, 
 Tom Talpey <tom@...pey.com>, Trond Myklebust <trondmy@...nel.org>, 
 Anna Schumaker <anna@...nel.org>
Cc: Tom Haynes <loghyr@...il.com>, linux-kernel@...r.kernel.org, 
 linux-nfs@...r.kernel.org, Jeff Layton <jlayton@...nel.org>
Subject: [PATCH 0/3] nfsd: implement OPEN_XOR_DELEGATION part of delstid
 draft
This adds support for part of the "delstid" draft:
    https://datatracker.ietf.org/doc/draft-ietf-nfsv4-delstid/05/
Specifically, this adds support for the OPEN_XOR_DELEGATION part of the
draft. That allows the client to avoid issuing CLOSE compounds when it
holds a delegation.
For the XDR handling, I used Chuck's new lkxdrgen tool to generate the
relevant boilerplate, and then hand tweaked it in places to work around
bugs in the decoder, naming conflicts, etc.
I've left the encoders and decoders for the delegated timestamp handling
in the XDR patch, but I'm still studying that piece and it isn't
implemented yet. That may require some timestamp handling surgery at the
VFS layer. I think it's doable and may actually be simpler to implement
on top of the multigrain work.
Signed-off-by: Jeff Layton <jlayton@...nel.org>
---
Jeff Layton (3):
      nfsd: bring in support for delstid draft XDR encoding
      nfsd: add support for FATTR4_OPEN_ARGUMENTS
      nfsd: implement OPEN_ARGS_SHARE_ACCESS_WANT_OPEN_XOR_DELEGATION
 fs/nfsd/Makefile          |   2 +-
 fs/nfsd/delstid_xdr.c     | 464 ++++++++++++++++++++++++++++++++++++++++++++++
 fs/nfsd/delstid_xdr.h     | 105 +++++++++++
 fs/nfsd/nfs4state.c       |  29 ++-
 fs/nfsd/nfs4xdr.c         |  57 +++++-
 fs/nfsd/nfsd.h            |   3 +-
 include/uapi/linux/nfs4.h |   7 +-
 7 files changed, 658 insertions(+), 9 deletions(-)
---
base-commit: 6d0cd2727ed2cf725b1f20dc4e2d0d138c1cf117
change-id: 20240815-delstid-93290691ad11
Best regards,
-- 
Jeff Layton <jlayton@...nel.org>
Powered by blists - more mailing lists