[PATCH 1/1] pynfs: set cache_this to false for readdir

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

 



From: Andy Adamson <andros@xxxxxxxxxx>

testserver.py was failing initialization against the new Linux server DRC
which has a lower max resonse size cached value than the initializaion
readdir response.

Set cache_this to False

Signed-off-by: Andy Adamson <andros@xxxxxxxxxx>
---
 nfs4.1/server41tests/environment.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/nfs4.1/server41tests/environment.py b/nfs4.1/server41tests/environment.py
index fb0e7ed..8623158 100644
--- a/nfs4.1/server41tests/environment.py
+++ b/nfs4.1/server41tests/environment.py
@@ -415,7 +415,7 @@ def do_readdir(sess, file, cookie=0, cookieverf='', attrs=0L,
     baseops = use_obj(file)
     while True:
         readdir_op = op.readdir(cookie, cookieverf, dircount, maxcount, attrs)
-        res = sess.compound(baseops + [readdir_op])
+        res = sess.compound(baseops + [readdir_op], cache_this=False)
         check(res, msg="READDIR with cookie=%i, maxcount=%i" % (cookie, maxcount))
         reply = res.resarray[-1].reply
         if not reply.entries and not reply.eof:
-- 
1.5.4.3

--
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