All of lore.kernel.org
 help / color / mirror / Atom feed
* [pynfs] [PATCH 1/3] Add required RECLAIM_COMPLETE ops for new clients in
@ 2018-03-28 22:28 Frank Filz
  2018-03-29 19:00 ` J. Bruce Fields
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Filz @ 2018-03-28 22:28 UTC (permalink / raw)
  To: linux-nfs

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
 nfs4.1/server41tests/st_destroy_session.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nfs4.1/server41tests/st_destroy_session.py
b/nfs4.1/server41tests/st_destroy_session.py
index 435ef4b..c247434 100644
--- a/nfs4.1/server41tests/st_destroy_session.py
+++ b/nfs4.1/server41tests/st_destroy_session.py
@@ -51,6 +51,7 @@ def testDestroy2(t, env):
         return res
     c = env.c1.new_client(env.testname(t))
     sess1 = c.create_session()
+    sess1.compound([op.reclaim_complete(FALSE)])
     res = c.c.compound([op.destroy_session(sess1.sessionid)])
     sess2 = c.create_session()
     res = create_file(sess2, env.testname(t),
@@ -63,6 +64,7 @@ def testDestroy2(t, env):
         fail("Could not get delegation")
     c2 = env.c1.new_client("%s_2" % env.testname(t))
     sess3 = c2.create_session()
+    sess3.compound([op.reclaim_complete(FALSE)])
     claim = open_claim4(CLAIM_NULL, env.testname(t))
     owner = open_owner4(0, "My Open Owner 2")
     how = openflag4(OPEN4_NOCREATE)
@@ -100,6 +102,7 @@ def testDestroy3(t, env):
         return res
     c = env.c1.new_client(env.testname(t))
     sess1 = c.create_session()
+    sess1.compound([op.reclaim_complete(FALSE)])
     res = create_file(sess1, env.testname(t),
                       access=OPEN4_SHARE_ACCESS_READ |
                       OPEN4_SHARE_ACCESS_WANT_READ_DELEG)
@@ -112,6 +115,7 @@ def testDestroy3(t, env):
     recall.happened = False
     c2 = env.c1.new_client("%s_2" % env.testname(t))
     sess2 = c2.create_session()
+    sess2.compound([op.reclaim_complete(FALSE)])
     claim = open_claim4(CLAIM_NULL, env.testname(t))
     owner = open_owner4(0, "My Open Owner 2")
     how = openflag4(OPEN4_NOCREATE)
-- 
2.5.5





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

* Re: [pynfs] [PATCH 1/3] Add required RECLAIM_COMPLETE ops for new clients in
  2018-03-28 22:28 [pynfs] [PATCH 1/3] Add required RECLAIM_COMPLETE ops for new clients in Frank Filz
@ 2018-03-29 19:00 ` J. Bruce Fields
  0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2018-03-29 19:00 UTC (permalink / raw)
  To: Frank Filz; +Cc: linux-nfs

Thanks, applying.

(But it might be simpler to use new_client_session.)

--b.

On Wed, Mar 28, 2018 at 03:28:20PM -0700, Frank Filz wrote:
> Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
> ---
>  nfs4.1/server41tests/st_destroy_session.py | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/nfs4.1/server41tests/st_destroy_session.py
> b/nfs4.1/server41tests/st_destroy_session.py
> index 435ef4b..c247434 100644
> --- a/nfs4.1/server41tests/st_destroy_session.py
> +++ b/nfs4.1/server41tests/st_destroy_session.py
> @@ -51,6 +51,7 @@ def testDestroy2(t, env):
>          return res
>      c = env.c1.new_client(env.testname(t))
>      sess1 = c.create_session()
> +    sess1.compound([op.reclaim_complete(FALSE)])
>      res = c.c.compound([op.destroy_session(sess1.sessionid)])
>      sess2 = c.create_session()
>      res = create_file(sess2, env.testname(t),
> @@ -63,6 +64,7 @@ def testDestroy2(t, env):
>          fail("Could not get delegation")
>      c2 = env.c1.new_client("%s_2" % env.testname(t))
>      sess3 = c2.create_session()
> +    sess3.compound([op.reclaim_complete(FALSE)])
>      claim = open_claim4(CLAIM_NULL, env.testname(t))
>      owner = open_owner4(0, "My Open Owner 2")
>      how = openflag4(OPEN4_NOCREATE)
> @@ -100,6 +102,7 @@ def testDestroy3(t, env):
>          return res
>      c = env.c1.new_client(env.testname(t))
>      sess1 = c.create_session()
> +    sess1.compound([op.reclaim_complete(FALSE)])
>      res = create_file(sess1, env.testname(t),
>                        access=OPEN4_SHARE_ACCESS_READ |
>                        OPEN4_SHARE_ACCESS_WANT_READ_DELEG)
> @@ -112,6 +115,7 @@ def testDestroy3(t, env):
>      recall.happened = False
>      c2 = env.c1.new_client("%s_2" % env.testname(t))
>      sess2 = c2.create_session()
> +    sess2.compound([op.reclaim_complete(FALSE)])
>      claim = open_claim4(CLAIM_NULL, env.testname(t))
>      owner = open_owner4(0, "My Open Owner 2")
>      how = openflag4(OPEN4_NOCREATE)
> -- 
> 2.5.5
> 
> 
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2018-03-29 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28 22:28 [pynfs] [PATCH 1/3] Add required RECLAIM_COMPLETE ops for new clients in Frank Filz
2018-03-29 19:00 ` J. Bruce Fields

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.