From patchwork Tue Sep 18 20:28:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Adamson X-Patchwork-Id: 1474621 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 875AB400EC for ; Tue, 18 Sep 2012 20:28:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755160Ab2IRU20 (ORCPT ); Tue, 18 Sep 2012 16:28:26 -0400 Received: from mx2.netapp.com ([216.240.18.37]:20589 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755159Ab2IRU20 (ORCPT ); Tue, 18 Sep 2012 16:28:26 -0400 X-IronPort-AV: E=Sophos;i="4.80,445,1344236400"; d="scan'208";a="691229161" Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 18 Sep 2012 13:28:25 -0700 Received: from fedora-2.androsad.fake (vpn2ntap-266877.hq.netapp.com [10.55.65.187]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q8IKSOsZ013819; Tue, 18 Sep 2012 13:28:24 -0700 (PDT) From: andros@netapp.com To: iisaman@netapp.com Cc: linux-nfs@vger.kernel.org, Andy Adamson Subject: [PATCH 1/1] SRVR: set OPEN4_RESULT_LOCKTYPE_POSIX on open Date: Tue, 18 Sep 2012 16:28:19 -0400 Message-Id: <1348000099-13413-1-git-send-email-andros@netapp.com> X-Mailer: git-send-email 1.7.6.5 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Andy Adamson Enable POSIX locking on the NFSv4.1 pynfs server Signed-off-by: Andy Adamson --- nfs4.1/nfs4server.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/nfs4.1/nfs4server.py b/nfs4.1/nfs4server.py index b279292..bcb6c17 100755 --- a/nfs4.1/nfs4server.py +++ b/nfs4.1/nfs4server.py @@ -1435,7 +1435,8 @@ class NFS4Server(rpc.Server): # where should it be in relation to above code? if self.is_mds: file.layout_open_hook() - return sid, deleg, 0 + # we support posix locking + return sid, deleg, OPEN4_RESULT_LOCKTYPE_POSIX def get_attributes(self, obj, attrs, ignore=True): # XXX This really should be a FSObject method, but having trouble