4.1 server tests: old stateid seqid after an OPEN upgrade
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | 4.1 server tests: add CLOSE test with an old stateid seqid after OPEN upgradenfs4.1/ | +37 | 0 replies | |
| 2/3 | 4.1 server tests: add OPEN_DOWNGRADE test with an old stateid seqid after OPEN upgradenfs4.1/ | +18 | 0 replies | |
| 3/3 | 4.1 server tests: add LOCKU test with an old lock stateid seqidnfs4.1/ nfs4.1/ | +50 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] 4.1 server tests: old stateid seqid after an OPEN upgrade
NFSv4.1 has no tests for a CLOSE, OPEN_DOWNGRADE or LOCKU that presents an outdated stateid seqid; 4.0 has CLOSE5, OPDG7 and LKU7. RFC 8881 section 8.2.2 requires NFS4ERR_OLD_STATEID here, and names the case where a client closes a file without knowing that a parallel OPEN upgraded it. Servers that accept the old seqid destroy an open the client has just been given, and the Linux client then stalls in open(2).
Add OPEN32 (CLOSE), OPEN33 (OPEN_DOWNGRADE) and LKU1 (LOCKU). Each checks that the request fails with NFS4ERR_OLD_STATEID and that the open or lock stateid is still usable afterwards.
Tested against the Linux NFS server (Ubuntu, kernel 7.0.0-38-generic):
all three pass, repeatedly. (One run of LKU1 in a batch right after the test tree was created failed once; I could not reproduce it in nine further runs and did not capture the message.)
Against dCache nfs4j master (c231be58) OPEN32 and OPEN33 pass, and LKU1 fails with "NFS4ERR_OLD_STATEID, instead got NFS4_OK", which matches a missing check there.
Seunghun Shin (3):
4.1 server tests: add CLOSE test with an old stateid seqid after OPEN
upgrade
4.1 server tests: add OPEN_DOWNGRADE test with an old stateid seqid
after OPEN upgrade
4.1 server tests: add LOCKU test with an old lock stateid seqid
nfs4.1/server41tests/__init__.py | 1 + nfs4.1/server41tests/st_locku.py | 49 ++++++++++++++++++++++++++++ nfs4.1/server41tests/st_open.py | 55 ++++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100644 nfs4.1/server41tests/st_locku.py
Signature · 1 line
2.55.0