Print this page
NEX-3758 Support for remote stale lock detection
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
SMB-50 User-mode SMB server
 Includes work by these authors:
 Thomas Keiser <thomas.keiser@nexenta.com>
 Albert Lee <trisk@nexenta.com>

@@ -17,10 +17,15 @@
  * fields enclosed by brackets "[]" replaced with your own identifying
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
+
+/*
+ * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
+ */
+
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
 /*        All Rights Reserved   */
 
 
 /*

@@ -266,10 +271,18 @@
 void    cl_flk_set_nlm_status(int nlmid, flk_nlm_status_t nlm_state);
 void    cl_flk_remove_locks_by_sysid(int sysid);
 int     cl_flk_has_remote_locks_for_nlmid(struct vnode *vp, int nlmid);
 void    cl_flk_change_nlm_state_to_unknown(int nlmid);
 void    cl_flk_delete_pxfs_locks(struct vfs *vfsp, int pxfsid);
+
+/* Support for the remote stale lock detection */
+struct sockaddr;
+
+typedef int (*sysid_to_host_translator_t)(zoneid_t, sysid_t, struct sockaddr *,
+    const char **);
+
+void    flk_add_sysid_to_host_translator(sysid_to_host_translator_t);
 #endif /* _KERNEL */
 
 #ifdef  __cplusplus
 }
 #endif