diff mbox series

[pynfs,v2,2/7] DELEG2: fix write delegation test to open the file RW

Message ID 20241014-cb_getattr-v2-2-3782e0d7c598@kernel.org (mailing list archive)
State New
Headers show
Series pynfs: add CB_GETATTR tests and tests for delegated timestamps | expand

Commit Message

Jeff Layton Oct. 14, 2024, 8:50 p.m. UTC
The Linux NFS server currently will only grant a write delegation on a
r/w open, so this test fails to get a delegation there. The test should
work just as well with a r/w open.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 nfs4.1/server41tests/st_delegation.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/nfs4.1/server41tests/st_delegation.py b/nfs4.1/server41tests/st_delegation.py
index a25a042578b49d005f4f7ea741e623b44c0a0e2a..80b0da28fbad85429fc1f4c0e759be82b0cc5c08 100644
--- a/nfs4.1/server41tests/st_delegation.py
+++ b/nfs4.1/server41tests/st_delegation.py
@@ -79,7 +79,7 @@  def testWriteDeleg(t, env):
     FLAGS: writedelegations deleg
     CODE: DELEG2
     """
-    _testDeleg(t, env, OPEN4_SHARE_ACCESS_WRITE,
+    _testDeleg(t, env, OPEN4_SHARE_ACCESS_READ|OPEN4_SHARE_ACCESS_WRITE,
        OPEN4_SHARE_ACCESS_WANT_WRITE_DELEG, OPEN4_SHARE_ACCESS_READ)
 
 def testAnyDeleg(t, env):