From: Andy Adamson <andros@xxxxxxxxxx> Enable POSIX locking on the NFSv4.1 pynfs server Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html