Skip to contentSkip to conversation

SEQ_FALSE_RETRY is allowed for a solo SEQUENCE replay

PATCH In review Chuck Lever 2 participants 4 messages Oct 7, 2025 – Oct 8

Subsystems (2)
lore
Share & tools
lore

Chuck Lever

author maintainer
#0 lore raw

PATCH 1/1 SEQ_FALSE_RETRY is allowed for a solo SEQUENCE replay

From: Chuck Lever <[email protected]>

RFC 8881 Section 2.10.6.1.3 appears to permit servers to reply with NFS4ERR_SEQ_FALSE_RETRY for a replayed solo SEQUENCE. Update the test to allow it to pass in that case.

See also commit d4604ee1fdf1 ("SEQ9f: make sure replied SEQUENCE is really the same").

---
 nfs4.1/server41tests/st_sequence.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
nfs4.1/server41tests/st_sequence.py +4 -3
index 9be1096b9e8e..759fcd2b8d78 100644
@@ -209,10 +209,11 @@ def testReplayCache006(t, env):
     res1 = sess.compound([], cache_this=True)
     check(res1)
     res2 = sess.compound([], cache_this=True, seq_delta=0)
-    check(res2)
+    check(res2, [NFS4_OK, NFS4ERR_SEQ_FALSE_RETRY])
     res1.tag = res2.tag = b""
-    if not nfs4lib.test_equal(res1, res2):
-        fail("Replay results not equal")
+    if res2.status == NFS4_OK:
+        if not nfs4lib.test_equal(res1, res2):
+            fail("Replay results not equal")
 
 def testReplayCache007(t, env):
     """Send two successful non-idempotent compounds with same seqid and False cache_this
Signature · 1 line
2.51.0
author maintainer
#1 lore raw

Hi Calum -

Ping on this one. I don't see it in pynfs master as of commit cd4701827a82 ("Add some tests for unsupported fattr4 attributes").

Is there anything you'd like changed, or can it be applied as-is? I'm happy to resend if that's easier.

Signature · 1 line
Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
#2 lore raw
Quoted 7 lines · Chuck Lever

Hi Calum -

Ping on this one. I don't see it in pynfs master as of commit cd4701827a82 ("Add some tests for unsupported fattr4 attributes").

Is there anything you'd like changed, or can it be applied as-is? I'm happy to resend if that's easier.

Hi Chuck,

Yes, sorry, I have a bit of a backlog, I'll get to it asap. No need to resend.

cheers,
c.

author maintainer
#3 lore raw
Quoted 2 lines · Calum Mackay

Yes, sorry, I have a bit of a backlog, I'll get to it asap. No need to resend.

Hi Calum -

Let's drop this one instead.

I wrote it to keep SEQ9f passing against a draft NFSD change that returned NFS4ERR_SEQ_FALSE_RETRY for a replayed solo SEQUENCE. But auditing the kernel commit log shows that change was never applied; it was rejected during review, so the test is correct as it stands.

Signature · 1 line
Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)