Print this page
195 Need replacement for nfs/lockd+klm

@@ -22,15 +22,17 @@
 /*
  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
+/*
+ * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
+ */
+
 #ifndef _NFS_LM_H
 #define _NFS_LM_H
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  * Interface definitions for the NFSv2/v3 lock manager.
  */
 
 #ifdef __cplusplus

@@ -40,18 +42,19 @@
 #include <sys/cred.h>
 #include <sys/fcntl.h>
 #include <sys/types.h>
 #include <sys/vnode.h>
 #include <rpc/rpc.h>
-#include <nfs/export.h>
 
 #ifdef _KERNEL
 
 /*
  * Common interfaces.
  */
 
+struct exportinfo;
+
 /*
  * The numeric sysid is used to identify a host and transport.
  *
  * The local locking code uses (pid, sysid) to uniquely identify a process.
  * This means that the client-side code must doctor up the sysid before

@@ -152,20 +155,18 @@
 extern int lm_vp_active(const struct vnode *);
 
 extern sysid_t             lm_alloc_sysidt(void);
 extern void                lm_free_sysidt(sysid_t);
 
-#else /* _KERNEL */
+#endif /* _KERNEL */
 
 #ifdef __STDC__
 extern int lm_shutdown(void);
 #else
 extern int lm_shutdown();
 #endif /* __STDC__ */
 
-#endif /* _KERNEL */
-
 #ifdef __cplusplus
 }
 #endif
 
 #endif /* _NFS_LM_H */