* [PATCH 1/1] SRVR: set OPEN4_RESULT_LOCKTYPE_POSIX on open
@ 2012-09-18 20:28 andros
0 siblings, 0 replies; only message in thread
From: andros @ 2012-09-18 20:28 UTC (permalink / raw)
To: iisaman; +Cc: linux-nfs, Andy Adamson
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-09-18 20:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-18 20:28 [PATCH 1/1] SRVR: set OPEN4_RESULT_LOCKTYPE_POSIX on open andros
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).