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

Jeff Layton
2024-10-14T20:50:38Z

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

--
2.47.0