Skip to content

Initial SP4_MACH_CRED implementation

Weston Andros Adamson linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7nfs4.1: Minimal SP4_MACH_CRED implementationfs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c include/linux/nfs_fs_sb.h +1 more+211 -170 replies
2/7nfs4.1: Add state protection handlerfs/nfs/nfs4_fs.h+35 -00 replies
3/7nfs4.1: Add SP4_MACH_CRED cleanup supportfs/nfs/nfs4proc.c include/linux/nfs_fs_sb.h+19 -10 replies
4/7nfs4.1: Add SP4_MACH_CRED secinfo supportfs/nfs/nfs4proc.c include/linux/nfs_fs_sb.h+15 -10 replies
5/7nfs4.1: Add SP4_MACH_CRED stateid supportfs/nfs/nfs4proc.c include/linux/nfs_fs_sb.h+18 -20 replies
6/7nfs4.1: Add SP4_MACH_CRED write and commit supportfs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c fs/nfs/write.c +1 more+59 -90 replies
7/7nfs4: Map NFS4ERR_WRONG_CRED to EPERMfs/nfs/nfs4proc.c+1 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] Initial SP4_MACH_CRED implementation

This is version 2 of this patchset including some cleanup, refactoring and fixes a few build issues with different configs.

I also added a few patches:
- WRITE and/or COMMIT support - tested on a hacked nfsd
- map NFS4ERR_WRONG_CRED (an common SP4 error) to EPERM

I meant to include a patch that only uses the machine cred (for 'allow' ops) when the user cred has expired, but after talking with Andy, I decided to wait for his cred expiration patchset to be merged as we'd be touching the same places and possibly duplicating effort.

Weston Andros Adamson (7):
nfs4.1: Minimal SP4_MACH_CRED implementation nfs4.1: Add state protection handler nfs4.1: Add SP4_MACH_CRED cleanup support nfs4.1: Add SP4_MACH_CRED secinfo support nfs4.1: Add SP4_MACH_CRED stateid support nfs4.1: Add SP4_MACH_CRED write and commit support
nfs4: Map NFS4ERR_WRONG_CRED to EPERM

 fs/nfs/nfs4_fs.h          |  67 ++++++++++++++++
 fs/nfs/nfs4proc.c         | 191 ++++++++++++++++++++++++++++++++++++++++++++--
 fs/nfs/nfs4xdr.c          |  72 ++++++++++++++---
 fs/nfs/write.c            |   6 ++
 include/linux/nfs_fs_sb.h |   9 +++
 include/linux/nfs_xdr.h   |  19 +++++
 6 files changed, 346 insertions(+), 18 deletions(-)
Signature · 1 line
1.7.12.4 (Apple Git-37)