SRVR: set OPEN4_RESULT_LOCKTYPE_POSIX on open
Subsystems (2)
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
Signed-off-by Andy Adamson <[email protected]>
--- nfs4.1/nfs4server.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
nfs4.1/nfs4server.py +2 -1
@@ -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