From patchwork Mon Jun 23 16:57:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: malahal naineni X-Patchwork-Id: 4404001 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DAFFE9F390 for ; Mon, 23 Jun 2014 16:58:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0DBFB20225 for ; Mon, 23 Jun 2014 16:58:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 009CF2012F for ; Mon, 23 Jun 2014 16:58:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755596AbaFWQ6Q (ORCPT ); Mon, 23 Jun 2014 12:58:16 -0400 Received: from e7.ny.us.ibm.com ([32.97.182.137]:37523 "EHLO e7.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753484AbaFWQ6P (ORCPT ); Mon, 23 Jun 2014 12:58:15 -0400 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Jun 2014 12:58:15 -0400 Received: from d01dlp03.pok.ibm.com (9.56.250.168) by e7.ny.us.ibm.com (192.168.1.107) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Jun 2014 12:58:13 -0400 Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id F4016C90041 for ; Mon, 23 Jun 2014 12:58:06 -0400 (EDT) Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by b01cxnp22035.gho.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s5NGwDtm47251468 for ; Mon, 23 Jun 2014 16:58:13 GMT Received: from d01av01.pok.ibm.com (localhost [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s5NGwCff006551 for ; Mon, 23 Jun 2014 12:58:12 -0400 Received: from malahal (malahal.austin.ibm.com [9.41.105.170]) by d01av01.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s5NGwCsb006519; Mon, 23 Jun 2014 12:58:12 -0400 Received: by malahal (Postfix, from userid 155450) id BBDAFBFDC9; Mon, 23 Jun 2014 11:58:11 -0500 (CDT) From: Malahal Naineni To: linux-nfs@vger.kernel.org Cc: bfields@fieldses.org Subject: [PATCH 2/2] Open files with OPEN4_SHARE_DENY_NONE for DELEG5 test Date: Mon, 23 Jun 2014 11:57:42 -0500 Message-Id: <1403542662-8450-2-git-send-email-malahal@us.ibm.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1403542662-8450-1-git-send-email-malahal@us.ibm.com> References: <1403542662-8450-1-git-send-email-malahal@us.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14062316-5806-0000-0000-000025350472 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP DELEG5 test, while getting the READ delegation, uses OPEN4_SHARE_DENY_WRITE as that is the default. Pass OPEN4_SHARE_DENY_NONE explicitly as that is assumed in the test. Signed-off-by: Malahal Naineni --- nfs4.0/servertests/st_delegation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nfs4.0/servertests/st_delegation.py b/nfs4.0/servertests/st_delegation.py index 4da3a7a..eaff326 100644 --- a/nfs4.0/servertests/st_delegation.py +++ b/nfs4.0/servertests/st_delegation.py @@ -249,6 +249,7 @@ def testManyReaddeleg(t, env, funct=_recall, response=NFS4_OK): # Get a read delegation res = c.open_file(t.code, access=OPEN4_SHARE_ACCESS_READ, + deny=OPEN4_SHARE_DENY_NONE, set_recall=True, recall_funct=funct, recall_return=response) fh, stateid = c.confirm(t.code, res)