[PATCH] DELEG5: Create test file with mode o666

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

 



DELEG5   st_delegation.testManyReaddeleg                          : FAILURE
           Open which causes recall should return NFS4_OK or
           NFS4ERR_DELAY, instead got NFS4ERR_ACCESS
******* CB_Recall (id=14)********
**************************************************
Command line asked for 1 of 678 tests
Of those: 0 Skipped, 1 Failed, 0 Warned, 0 Passed

WARNING: could not clean testdir due to:
Making sure b'DELEG5-1' is writable: operation OP_SETATTR should return NFS4_OK, instead got NFS4ERR_DELAY

DELEG5 attempts an OPEN with ACCESS_WRITE to force the recall of
a bunch of delegations. The OPEN that requests ACCESS_WRITE fails,
however, because the test file was created as 0,0 with mode o644.

A perhaps more preferable long-term fix would be to follow the
advice of the nearby comment and convert DELEG5 to use _get_deleg(),
but I'm not expert enough to tackle that yet.

Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
---
 nfs4.0/servertests/st_delegation.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nfs4.0/servertests/st_delegation.py b/nfs4.0/servertests/st_delegation.py
index 9c98ec0e0fb3..ba49cf9f09db 100644
--- a/nfs4.0/servertests/st_delegation.py
+++ b/nfs4.0/servertests/st_delegation.py
@@ -244,7 +244,8 @@ def testManyReaddeleg(t, env, funct=_recall, response=NFS4_OK):
     c.init_connection(b'pynfs%i_%s' % (os.getpid(), t.word()), cb_ident=0)
     cbids = []
     fh, stateid = c.create_confirm(t.word(), access=OPEN4_SHARE_ACCESS_READ,
-                                   deny=OPEN4_SHARE_DENY_NONE)
+                                   deny=OPEN4_SHARE_DENY_NONE,
+                                   attrs={FATTR4_MODE: 0o666})
     for i in range(count):
         c.init_connection(b'pynfs%i_%s_%i' % (os.getpid(), t.word(), i), cb_ident=0)
         fh, stateid = c.open_confirm(t.word(), access=OPEN4_SHARE_ACCESS_READ,





[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