[pynfs 05/10] Fix testFlexLayoutOldSeqid

Tom Haynes
2020-12-17T00:37:05Z

From: Trond Myklebust <trond.myklebust@hammerspace.com>

LAYOUTRETURN should return NFS4ERR_OLD_STATEID when presented with an
older layout that wasn't recalled.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
---
nfs4.1/server41tests/st_flex.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nfs4.1/server41tests/st_flex.py b/nfs4.1/server41tests/st_flex.py
index 4defa81..b46941e 100644
--- a/nfs4.1/server41tests/st_flex.py
+++ b/nfs4.1/server41tests/st_flex.py
@@ -169,7 +169,7 @@ def testFlexLayoutOldSeqid(t, env):
layoutreturn4(LAYOUTRETURN4_FILE,
layoutreturn_file4(0, 0xffffffffffffffff, lo_stateid, "")))]
res = sess.compound(ops)
- check(res)
+ check(res, NFS4ERR_OLD_STATEID, "LAYOUTRETURN with an old stateid")
res = close_file(sess, fh, stateid=open_stateid)
check(res)

--
2.26.2