Skip to content

nfs4.1: 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 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5nfs4.1: Minimal SP4_MACH_CRED implementationfs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c include/linux/nfs_fs_sb.h +1 more+199 -170 replies
2/5nfs4.1: add state protection handlerfs/nfs/nfs4_fs.h+36 -00 replies
3/5nfs4.1: Add SP4_MACH_CRED cleanup supportfs/nfs/nfs4proc.c include/linux/nfs_fs_sb.h+28 -10 replies
4/5nfs4.1: Add SP4_MACH_CRED secinfo supportfs/nfs/nfs4proc.c include/linux/nfs_fs_sb.h+16 -20 replies
5/5nfs4.1: Add SP4_MACH_CRED stateid supportfs/nfs/nfs4proc.c include/linux/nfs_fs_sb.h+18 -20 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/5] nfs4.1: Initial SP4_MACH_CRED implementation

These patches are the initial client-side SP4_MACH_CRED implementation.

Patch 1 is a repost with a few cleanups

Patch 2 adds the sp4 handler that replaces the cred on an rpc message (and picks the right rpc_clnt). Note that for now, we always use the machine cred if supported - we could only use it if the user cred expires, but this is simple and spec compliant.

Patch 3-5 implement SP4_MACH_CRED "features":
- cleanup - CLOSE and LOCKU use machine cred
- secinfo - SECINFO and SECINFO_NO_NAME use machine cred
- stateid - TEST_STATEID and FREE_STATEID use machine cred

There are three more features that I've been working on, but need to be tested before I post:
- commit - COMMIT uses machine cred
- write - WRITE uses machine cred, forces stable writes unless commit feature is also enabled
- recovery - OPEN and LOCK can use machine cred - only in recovery.

The commit and write cases should be easy to test against a hacked nfsd, but I need to think more about how to test the recovery stuff...

-dros