Skip to contentSkip to conversation

SRVR: set OPEN4_RESULT_LOCKTYPE_POSIX on open

PATCH New [email protected] 1 participant 1 message Sep 18, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SRVR: set OPEN4_RESULT_LOCKTYPE_POSIX on open

From: Andy Adamson <[email protected]>

Enable POSIX locking on the NFSv4.1 pynfs server

---
 nfs4.1/nfs4server.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
nfs4.1/nfs4server.py +2 -1
index b279292..bcb6c17 100755
@@ -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
Signature · 1 line
1.7.5.1