[PATCH] nfs4.1: check whether old session is discard for EID5f

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Kinglong Mee <kinglongmee@xxxxxxxxx>
---
 nfs4.1/server41tests/st_exchange_id.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/nfs4.1/server41tests/st_exchange_id.py b/nfs4.1/server41tests/st_exchange_id.py
index c31af95..d2c0c97 100644
--- a/nfs4.1/server41tests/st_exchange_id.py
+++ b/nfs4.1/server41tests/st_exchange_id.py
@@ -244,7 +244,12 @@ def testNoUpdate101(t, env):
     # Old session state should not be discarded until confirm:
     res = sess1.compound([])
     check(res)
-    # FIXME - more checks here
+
+    # Old session state should be discarded after confirm:
+    sess2 = c2.create_session()
+    check(res)
+    res = sess1.compound([])
+    check(res, NFS4ERR_BADSESSION)
 
 def testNoUpdate101b(t, env):
     """
-- 
1.8.4.2
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux