From: andros@netapp.com
To: iisaman@netapp.com
Cc: linux-nfs@vger.kernel.org, Andy Adamson <andros@netapp.com>
Subject: [PATCH 1/1] SRVR: set OPEN4_RESULT_LOCKTYPE_POSIX on open
Date: Tue, 18 Sep 2012 16:28:19 -0400 [thread overview]
Message-ID: <1348000099-13413-1-git-send-email-andros@netapp.com> (raw)
From: Andy Adamson <andros@netapp.com>
Enable POSIX locking on the NFSv4.1 pynfs server
Signed-off-by: Andy Adamson <andros@netapp.com>
---
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
--
1.7.5.1
reply other threads:[~2012-09-18 20:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1348000099-13413-1-git-send-email-andros@netapp.com \
--to=andros@netapp.com \
--cc=iisaman@netapp.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).