From patchwork Wed Nov 1 12:08:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew W Elble X-Patchwork-Id: 10036279 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 660A4602B5 for ; Wed, 1 Nov 2017 12:09:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C4F128669 for ; Wed, 1 Nov 2017 12:09:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F096289B4; Wed, 1 Nov 2017 12:09:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27A9028669 for ; Wed, 1 Nov 2017 12:09:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754578AbdKAMJY (ORCPT ); Wed, 1 Nov 2017 08:09:24 -0400 Received: from discipline.rit.edu ([129.21.6.207]:52383 "HELO discipline.rit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751738AbdKAMJV (ORCPT ); Wed, 1 Nov 2017 08:09:21 -0400 Received: (qmail 68045 invoked by uid 501); 1 Nov 2017 12:09:20 -0000 From: Andrew Elble To: linux-nfs@vger.kernel.org, bfields@fieldses.org Cc: Andrew Elble Subject: [PATCH] 4.1 server tests: make DELEG8 also check that an operation using a revoked stateid returns revoked status Date: Wed, 1 Nov 2017 08:08:55 -0400 Message-Id: <20171101120855.65421-1-aweits@rit.edu> X-Mailer: git-send-email 2.10.1 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Andrew Elble --- 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;