Print this page
195 Need replacement for nfs/lockd+klm
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Jeremy Jones <jeremy@delphix.com>
Reviewed by: Jeff Biseda <jbiseda@delphix.com>
*** 22,36 ****
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#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
--- 22,38 ----
/*
* 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
/*
* Interface definitions for the NFSv2/v3 lock manager.
*/
#ifdef __cplusplus
*** 40,57 ****
#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.
*/
/*
* 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
--- 42,60 ----
#include <sys/cred.h>
#include <sys/fcntl.h>
#include <sys/types.h>
#include <sys/vnode.h>
#include <rpc/rpc.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,171 ****
extern int lm_vp_active(const struct vnode *);
extern sysid_t lm_alloc_sysidt(void);
extern void lm_free_sysidt(sysid_t);
! #else /* _KERNEL */
#ifdef __STDC__
extern int lm_shutdown(void);
#else
extern int lm_shutdown();
#endif /* __STDC__ */
- #endif /* _KERNEL */
-
#ifdef __cplusplus
}
#endif
#endif /* _NFS_LM_H */
--- 155,172 ----
extern int lm_vp_active(const struct vnode *);
extern sysid_t lm_alloc_sysidt(void);
extern void lm_free_sysidt(sysid_t);
! #endif /* _KERNEL */
#ifdef __STDC__
extern int lm_shutdown(void);
#else
extern int lm_shutdown();
#endif /* __STDC__ */
#ifdef __cplusplus
}
#endif
#endif /* _NFS_LM_H */