linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 4.1 server tests: make DELEG8 also check that an operation using a revoked stateid returns revoked status
@ 2017-11-01 12:08 Andrew Elble
  2017-11-09 14:13 ` J. Bruce Fields
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Elble @ 2017-11-01 12:08 UTC (permalink / raw)
  To: linux-nfs, bfields; +Cc: Andrew Elble

Signed-off-by: Andrew Elble <aweits@rit.edu>
---
 nfs4.1/server41tests/st_delegation.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/nfs4.1/server41tests/st_delegation.py b/nfs4.1/server41tests/st_delegation.py
index a5066926a89d..c5959f6cda84 100644
--- a/nfs4.1/server41tests/st_delegation.py
+++ b/nfs4.1/server41tests/st_delegation.py
@@ -186,6 +186,8 @@ def testDelegRevocation(t, env):
         # depend on the above compound waiting no longer than the
         # server's lease period:
         res = sess1.compound([])
+    res = sess1.compound([op.putfh(fh), op.read(delegstateid, 0, 1000)])
+    check(res, NFS4ERR_DELEG_REVOKED, "Read with a revoked delegation")
     slot, seq_op = sess1._prepare_compound({})
     res = sess1.c.compound([seq_op])
     flags = res.resarray[0].sr_status_flags;
-- 
2.10.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] 4.1 server tests: make DELEG8 also check that an operation using a revoked stateid returns revoked status
  2017-11-01 12:08 [PATCH] 4.1 server tests: make DELEG8 also check that an operation using a revoked stateid returns revoked status Andrew Elble
@ 2017-11-09 14:13 ` J. Bruce Fields
  0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2017-11-09 14:13 UTC (permalink / raw)
  To: Andrew Elble; +Cc: linux-nfs

Applied, thanks.--b.

On Wed, Nov 01, 2017 at 08:08:55AM -0400, Andrew Elble wrote:
> Signed-off-by: Andrew Elble <aweits@rit.edu>
> ---
>  nfs4.1/server41tests/st_delegation.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/nfs4.1/server41tests/st_delegation.py b/nfs4.1/server41tests/st_delegation.py
> index a5066926a89d..c5959f6cda84 100644
> --- a/nfs4.1/server41tests/st_delegation.py
> +++ b/nfs4.1/server41tests/st_delegation.py
> @@ -186,6 +186,8 @@ def testDelegRevocation(t, env):
>          # depend on the above compound waiting no longer than the
>          # server's lease period:
>          res = sess1.compound([])
> +    res = sess1.compound([op.putfh(fh), op.read(delegstateid, 0, 1000)])
> +    check(res, NFS4ERR_DELEG_REVOKED, "Read with a revoked delegation")
>      slot, seq_op = sess1._prepare_compound({})
>      res = sess1.c.compound([seq_op])
>      flags = res.resarray[0].sr_status_flags;
> -- 
> 2.10.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-09 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-01 12:08 [PATCH] 4.1 server tests: make DELEG8 also check that an operation using a revoked stateid returns revoked status Andrew Elble
2017-11-09 14:13 ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).