xref: /titanic_44/usr/src/uts/common/nfs/nfssys.h (revision cee8668251d5ec44fd1c6d6ddeb9c1d1821a57d2)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
527242a7cSthurlow  * Common Development and Distribution License (the "License").
627242a7cSthurlow  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate /*
2227242a7cSthurlow  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
247c478bd9Sstevel@tonic-gate  */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate /*	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T	*/
277c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate #ifndef	_NFS_NFSSYS_H
307c478bd9Sstevel@tonic-gate #define	_NFS_NFSSYS_H
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
337c478bd9Sstevel@tonic-gate 
347c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
357c478bd9Sstevel@tonic-gate extern "C" {
367c478bd9Sstevel@tonic-gate #endif
377c478bd9Sstevel@tonic-gate 
387c478bd9Sstevel@tonic-gate /*
397c478bd9Sstevel@tonic-gate  * Private definitions for the nfssys system call.
407c478bd9Sstevel@tonic-gate  * Note: <nfs/export.h> and <nfs/nfs.h> must be included before
417c478bd9Sstevel@tonic-gate  * this file.
427c478bd9Sstevel@tonic-gate  */
437c478bd9Sstevel@tonic-gate 
447c478bd9Sstevel@tonic-gate /*
457c478bd9Sstevel@tonic-gate  * Flavors of nfssys call.  Note that OLD_mumble commands are no longer
467c478bd9Sstevel@tonic-gate  * implemented, but the entries are kept as placeholders for binary
477c478bd9Sstevel@tonic-gate  * compatibility.
487c478bd9Sstevel@tonic-gate  */
4927242a7cSthurlow enum nfssys_op	{ OLD_NFS_SVC, OLD_ASYNC_DAEMON, EXPORTFS, OLD_NFS_GETFH,
507c478bd9Sstevel@tonic-gate     OLD_NFS_CNVT, NFS_REVAUTH, OLD_NFS_FH_TO_FID, OLD_LM_SVC, KILL_LOCKMGR,
517c478bd9Sstevel@tonic-gate     LOG_FLUSH, SVCPOOL_CREATE, NFS_SVC, LM_SVC, SVCPOOL_WAIT, SVCPOOL_RUN,
527c478bd9Sstevel@tonic-gate     NFS4_SVC, RDMA_SVC_INIT, NFS4_CLR_STATE, NFS_IDMAP,
53*cee86682Scalum     NFS4_SVC_REQUEST_QUIESCE, NFS_GETFH, NFS4_DSS_SETPATHS,
54*cee86682Scalum     NFS4_DSS_SETPATHS_SIZE };
557c478bd9Sstevel@tonic-gate 
567c478bd9Sstevel@tonic-gate struct nfs_svc_args {
577c478bd9Sstevel@tonic-gate 	int		fd;		/* Connection endpoint */
587c478bd9Sstevel@tonic-gate 	char		*netid;		/* Identify transport */
597c478bd9Sstevel@tonic-gate 	struct netbuf	addrmask;	/* Address mask for host */
607c478bd9Sstevel@tonic-gate 	int		versmin;	/* Min protocol version to offer */
617c478bd9Sstevel@tonic-gate 	int		versmax;	/* Max protocol version to offer */
627c478bd9Sstevel@tonic-gate 	int		delegation;	/* NFSv4 delegation on/off? */
637c478bd9Sstevel@tonic-gate };
647c478bd9Sstevel@tonic-gate 
657c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32
667c478bd9Sstevel@tonic-gate struct nfs_svc_args32 {
677c478bd9Sstevel@tonic-gate 	int32_t		fd;		/* Connection endpoint */
687c478bd9Sstevel@tonic-gate 	caddr32_t	netid;		/* Identify transport */
697c478bd9Sstevel@tonic-gate 	struct netbuf32	addrmask;	/* Address mask for host */
707c478bd9Sstevel@tonic-gate 	int32_t		versmin;	/* Min protocol version to offer */
717c478bd9Sstevel@tonic-gate 	int32_t		versmax;	/* Max protocol version to offer */
727c478bd9Sstevel@tonic-gate 	int32_t		delegation;	/* NFSv4 delegation on/off? */
737c478bd9Sstevel@tonic-gate };
747c478bd9Sstevel@tonic-gate #endif
757c478bd9Sstevel@tonic-gate 
767c478bd9Sstevel@tonic-gate struct exportfs_args {
777c478bd9Sstevel@tonic-gate 	char		*dname;
787c478bd9Sstevel@tonic-gate 	struct exportdata *uex;
797c478bd9Sstevel@tonic-gate };
807c478bd9Sstevel@tonic-gate 
817c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32
827c478bd9Sstevel@tonic-gate struct exportfs_args32 {
837c478bd9Sstevel@tonic-gate 	caddr32_t	dname;
847c478bd9Sstevel@tonic-gate 	caddr32_t	uex;
857c478bd9Sstevel@tonic-gate };
867c478bd9Sstevel@tonic-gate #endif
877c478bd9Sstevel@tonic-gate 
887c478bd9Sstevel@tonic-gate struct nfs_getfh_args {
897c478bd9Sstevel@tonic-gate 	char		*fname;
9027242a7cSthurlow 	int		vers;
9127242a7cSthurlow 	int		*lenp;
9227242a7cSthurlow 	char		*fhp;
937c478bd9Sstevel@tonic-gate };
947c478bd9Sstevel@tonic-gate 
957c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32
967c478bd9Sstevel@tonic-gate struct nfs_getfh_args32 {
977c478bd9Sstevel@tonic-gate 	caddr32_t	fname;
9827242a7cSthurlow 	int32_t		vers;
9927242a7cSthurlow 	caddr32_t	lenp;
1007c478bd9Sstevel@tonic-gate 	caddr32_t	fhp;
1017c478bd9Sstevel@tonic-gate };
1027c478bd9Sstevel@tonic-gate #endif
1037c478bd9Sstevel@tonic-gate 
1047c478bd9Sstevel@tonic-gate struct nfs_revauth_args {
1057c478bd9Sstevel@tonic-gate 	int		authtype;
1067c478bd9Sstevel@tonic-gate 	uid_t		uid;
1077c478bd9Sstevel@tonic-gate };
1087c478bd9Sstevel@tonic-gate 
1097c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32
1107c478bd9Sstevel@tonic-gate struct nfs_revauth_args32 {
1117c478bd9Sstevel@tonic-gate 	int32_t		authtype;
1127c478bd9Sstevel@tonic-gate 	uid32_t		uid;
1137c478bd9Sstevel@tonic-gate };
1147c478bd9Sstevel@tonic-gate #endif
1157c478bd9Sstevel@tonic-gate 
1167c478bd9Sstevel@tonic-gate /*
1177c478bd9Sstevel@tonic-gate  * Arguments for establishing lock manager service.  If you change
1187c478bd9Sstevel@tonic-gate  * lm_svc_args, you should increment the version number.  Try to keep
1197c478bd9Sstevel@tonic-gate  * supporting one or more old versions of the args, so that old lockd's
1207c478bd9Sstevel@tonic-gate  * will work with new kernels.
1217c478bd9Sstevel@tonic-gate  */
1227c478bd9Sstevel@tonic-gate 
1237c478bd9Sstevel@tonic-gate enum lm_fmly  { LM_INET, LM_INET6, LM_LOOPBACK };
1247c478bd9Sstevel@tonic-gate enum lm_proto { LM_TCP, LM_UDP };
1257c478bd9Sstevel@tonic-gate 
1267c478bd9Sstevel@tonic-gate struct lm_svc_args {
1277c478bd9Sstevel@tonic-gate 	int		version;	/* keep this first */
1287c478bd9Sstevel@tonic-gate 	int		fd;
1297c478bd9Sstevel@tonic-gate 	enum lm_fmly	n_fmly;		/* protocol family */
1307c478bd9Sstevel@tonic-gate 	enum lm_proto	n_proto;	/* protocol */
1317c478bd9Sstevel@tonic-gate 	dev_t		n_rdev;		/* device ID */
1327c478bd9Sstevel@tonic-gate 	int		debug;		/* debugging level */
1337c478bd9Sstevel@tonic-gate 	time_t		timout;		/* client handle life (asynch RPCs) */
1347c478bd9Sstevel@tonic-gate 	int		grace;		/* secs in grace period */
1357c478bd9Sstevel@tonic-gate 	time_t	retransmittimeout;	/* retransmission interval */
1367c478bd9Sstevel@tonic-gate };
1377c478bd9Sstevel@tonic-gate 
1387c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32
1397c478bd9Sstevel@tonic-gate struct lm_svc_args32 {
1407c478bd9Sstevel@tonic-gate 	int32_t		version;	/* keep this first */
1417c478bd9Sstevel@tonic-gate 	int32_t		fd;
1427c478bd9Sstevel@tonic-gate 	enum lm_fmly	n_fmly;		/* protocol family */
1437c478bd9Sstevel@tonic-gate 	enum lm_proto	n_proto;	/* protocol */
1447c478bd9Sstevel@tonic-gate 	dev32_t		n_rdev;		/* device ID */
1457c478bd9Sstevel@tonic-gate 	int32_t		debug;		/* debugging level */
1467c478bd9Sstevel@tonic-gate 	time32_t	timout;		/* client handle life (asynch RPCs) */
1477c478bd9Sstevel@tonic-gate 	int32_t		grace;		/* secs in grace period */
1487c478bd9Sstevel@tonic-gate 	time32_t	retransmittimeout;	/* retransmission interval */
1497c478bd9Sstevel@tonic-gate };
1507c478bd9Sstevel@tonic-gate #endif
1517c478bd9Sstevel@tonic-gate 
1527c478bd9Sstevel@tonic-gate #define	LM_SVC_CUR_VERS	30		/* current lm_svc_args vers num */
1537c478bd9Sstevel@tonic-gate 
1547c478bd9Sstevel@tonic-gate /*
1557c478bd9Sstevel@tonic-gate  * Arguments for nfslog flush service.
1567c478bd9Sstevel@tonic-gate  */
1577c478bd9Sstevel@tonic-gate struct nfsl_flush_args {
1587c478bd9Sstevel@tonic-gate 	int		version;
1597c478bd9Sstevel@tonic-gate 	int		directive;
1607c478bd9Sstevel@tonic-gate 	char		*buff;		/* buffer to flush/rename */
1617c478bd9Sstevel@tonic-gate 	int		buff_len;	/* includes terminating '\0' */
1627c478bd9Sstevel@tonic-gate };
1637c478bd9Sstevel@tonic-gate 
1647c478bd9Sstevel@tonic-gate #define	NFSL_FLUSH_ARGS_VERS 1		/* current nfsl_flush_args vers num */
1657c478bd9Sstevel@tonic-gate 
1667c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32
1677c478bd9Sstevel@tonic-gate struct nfsl_flush_args32 {
1687c478bd9Sstevel@tonic-gate 	int32_t		version;
1697c478bd9Sstevel@tonic-gate 	int32_t		directive;
1707c478bd9Sstevel@tonic-gate 	caddr32_t	buff;		/* buffer to flush/rename */
1717c478bd9Sstevel@tonic-gate 	int32_t		buff_len;	/* includes terminating '\0' */
1727c478bd9Sstevel@tonic-gate };
1737c478bd9Sstevel@tonic-gate #endif
1747c478bd9Sstevel@tonic-gate 
1757c478bd9Sstevel@tonic-gate /*
1767c478bd9Sstevel@tonic-gate  * Arguments for initialising RDMA service.
1777c478bd9Sstevel@tonic-gate  */
1787c478bd9Sstevel@tonic-gate struct rdma_svc_args {
1797c478bd9Sstevel@tonic-gate 	uint32_t	poolid;		/* Thread Pool ID */
1807c478bd9Sstevel@tonic-gate 	char		*netid;		/* Network Identifier */
1817c478bd9Sstevel@tonic-gate 	int		nfs_versmin;	/* Min NFS version to offer */
1827c478bd9Sstevel@tonic-gate 	int		nfs_versmax;	/* Max NFS version to offer */
1837c478bd9Sstevel@tonic-gate 	int		delegation;	/* NFSv4 delegation on/off? */
1847c478bd9Sstevel@tonic-gate };
1857c478bd9Sstevel@tonic-gate 
1867c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32
1877c478bd9Sstevel@tonic-gate struct rdma_svc_args32 {
1887c478bd9Sstevel@tonic-gate 	uint32_t	poolid;		/* Thread Pool ID */
1897c478bd9Sstevel@tonic-gate 	caddr32_t	netid;		/* Network Identifier */
1907c478bd9Sstevel@tonic-gate 	int32_t		nfs_versmin;	/* Min NFS version to offer */
1917c478bd9Sstevel@tonic-gate 	int32_t		nfs_versmax;	/* Max NFS version to offer */
1927c478bd9Sstevel@tonic-gate 	int32_t		delegation;	/* NFSv4 delegation on/off? */
1937c478bd9Sstevel@tonic-gate };
1947c478bd9Sstevel@tonic-gate #endif
1957c478bd9Sstevel@tonic-gate 
1967c478bd9Sstevel@tonic-gate 
1977c478bd9Sstevel@tonic-gate #define	NFS4_CLRST_VERSION	1
1987c478bd9Sstevel@tonic-gate struct nfs4clrst_args {
1997c478bd9Sstevel@tonic-gate 	int		vers;
2007c478bd9Sstevel@tonic-gate 	int		addr_type;
2017c478bd9Sstevel@tonic-gate 	void		*ap;
2027c478bd9Sstevel@tonic-gate };
2037c478bd9Sstevel@tonic-gate 
2047c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32
2057c478bd9Sstevel@tonic-gate struct nfs4clrst_args32 {
2067c478bd9Sstevel@tonic-gate 	int32_t		vers;
2077c478bd9Sstevel@tonic-gate 	int32_t		addr_type;
2087c478bd9Sstevel@tonic-gate 	caddr32_t	ap;
2097c478bd9Sstevel@tonic-gate };
2107c478bd9Sstevel@tonic-gate #endif
2117c478bd9Sstevel@tonic-gate 
2127c478bd9Sstevel@tonic-gate struct nfsidmap_args {
2137c478bd9Sstevel@tonic-gate 	uint_t		state;	/* Flushes caches, set state up 1 or down 0 */
2147c478bd9Sstevel@tonic-gate 	uint_t		did;	/* Door id to upcall */
2157c478bd9Sstevel@tonic-gate };
2167c478bd9Sstevel@tonic-gate 
2177c478bd9Sstevel@tonic-gate #define	NFSL_ALL	0x01		/* Flush all buffers */
2187c478bd9Sstevel@tonic-gate #define	NFSL_RENAME	0x02		/* Rename buffer(s) */
2197c478bd9Sstevel@tonic-gate #define	NFSL_SYNC	0x04		/* Perform operation synchronously? */
2207c478bd9Sstevel@tonic-gate 
2217c478bd9Sstevel@tonic-gate #ifdef _KERNEL
2227c478bd9Sstevel@tonic-gate union nfssysargs {
2237c478bd9Sstevel@tonic-gate 	struct exportfs_args	*exportfs_args_u;	/* exportfs args */
2247c478bd9Sstevel@tonic-gate 	struct nfs_getfh_args	*nfs_getfh_args_u;	/* nfs_getfh args */
2257c478bd9Sstevel@tonic-gate 	struct nfs_svc_args	*nfs_svc_args_u;	/* nfs_svc args */
2267c478bd9Sstevel@tonic-gate 	struct rdma_svc_args	*rdma_svc_args_u;	/* rdma_svc args */
2277c478bd9Sstevel@tonic-gate 	struct nfs_revauth_args	*nfs_revauth_args_u;	/* nfs_revauth args */
2287c478bd9Sstevel@tonic-gate 	struct lm_svc_args	*lm_svc_args_u;		/* lm_svc args */
2297c478bd9Sstevel@tonic-gate 	/* kill_lockmgr args: none */
2307c478bd9Sstevel@tonic-gate 	struct nfsl_flush_args	*nfsl_flush_args_u;	/* nfsl_flush args */
2317c478bd9Sstevel@tonic-gate 	struct svcpool_args	*svcpool_args_u;	/* svcpool args */
2327c478bd9Sstevel@tonic-gate 	struct nfs4clrst_args   *nfs4clrst_u;		/* nfs4 clear state */
2337c478bd9Sstevel@tonic-gate 	struct nfsidmap_args	*nfsidmap_u;		/* nfsidmap */
2347c478bd9Sstevel@tonic-gate };
2357c478bd9Sstevel@tonic-gate 
2367c478bd9Sstevel@tonic-gate struct nfssysa {
2377c478bd9Sstevel@tonic-gate 	enum nfssys_op		opcode;	/* operation discriminator */
2387c478bd9Sstevel@tonic-gate 	union nfssysargs	arg;	/* syscall-specific arg pointer */
2397c478bd9Sstevel@tonic-gate };
2407c478bd9Sstevel@tonic-gate #define	nfssysarg_exportfs	arg.exportfs_args_u
2417c478bd9Sstevel@tonic-gate #define	nfssysarg_getfh		arg.nfs_getfh_args_u
2427c478bd9Sstevel@tonic-gate #define	nfssysarg_svc		arg.nfs_svc_args_u
2437c478bd9Sstevel@tonic-gate #define	nfssysarg_rdmastart	arg.rdma_svc_args_u
2447c478bd9Sstevel@tonic-gate #define	nfssysarg_revauth	arg.nfs_revauth_args_u
2457c478bd9Sstevel@tonic-gate #define	nfssysarg_lmsvc		arg.lm_svc_args_u
2467c478bd9Sstevel@tonic-gate #define	nfssysarg_nfslflush	arg.nfsl_flush_args_u
2477c478bd9Sstevel@tonic-gate #define	nfssysarg_svcpool	arg.svcpool_args_u
2487c478bd9Sstevel@tonic-gate #define	nfssysarg_nfs4clrst	arg.nfs4clrst_u
2497c478bd9Sstevel@tonic-gate #define	nfssysarg_nfsidmap	arg.nfsidmap_u
2507c478bd9Sstevel@tonic-gate 
2517c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32
2527c478bd9Sstevel@tonic-gate union nfssysargs32 {
2537c478bd9Sstevel@tonic-gate 	caddr32_t exportfs_args_u;	/* exportfs args */
2547c478bd9Sstevel@tonic-gate 	caddr32_t nfs_getfh_args_u;	/* nfs_getfh args */
2557c478bd9Sstevel@tonic-gate 	caddr32_t nfs_svc_args_u;	/* nfs_svc args */
2567c478bd9Sstevel@tonic-gate 	caddr32_t rdma_svc_args_u;	/* rdma_start args */
2577c478bd9Sstevel@tonic-gate 	caddr32_t nfs_revauth_args_u;	/* nfs_revauth args */
2587c478bd9Sstevel@tonic-gate 	caddr32_t lm_svc_args_u;	/* lm_svc args */
2597c478bd9Sstevel@tonic-gate 	/* kill_lockmgr args: none */
2607c478bd9Sstevel@tonic-gate 	caddr32_t nfsl_flush_args_u;	/* nfsl_flush args */
2617c478bd9Sstevel@tonic-gate 	caddr32_t svcpool_args_u;
2627c478bd9Sstevel@tonic-gate 	caddr32_t nfs4clrst_u;
2637c478bd9Sstevel@tonic-gate };
2647c478bd9Sstevel@tonic-gate struct nfssysa32 {
2657c478bd9Sstevel@tonic-gate 	enum nfssys_op		opcode;	/* operation discriminator */
2667c478bd9Sstevel@tonic-gate 	union nfssysargs32	arg;	/* syscall-specific arg pointer */
2677c478bd9Sstevel@tonic-gate };
2687c478bd9Sstevel@tonic-gate #endif /* _SYSCALL32 */
2697c478bd9Sstevel@tonic-gate 
2707c478bd9Sstevel@tonic-gate #endif	/* _KERNEL */
2717c478bd9Sstevel@tonic-gate 
2727c478bd9Sstevel@tonic-gate struct nfs4_svc_args {
2737c478bd9Sstevel@tonic-gate 	int		fd;		/* Connection endpoint */
2747c478bd9Sstevel@tonic-gate 	int		cmd;
2757c478bd9Sstevel@tonic-gate 	char		*netid;		/* Transport Identifier */
2767c478bd9Sstevel@tonic-gate 	char		*addr;		/* Universal Address */
2777c478bd9Sstevel@tonic-gate 	char		*protofmly;	/* Protocol Family */
2787c478bd9Sstevel@tonic-gate 	char		*proto;		/* Protocol, eg. "tcp" */
2797c478bd9Sstevel@tonic-gate 	struct netbuf	addrmask;	/* Address mask for host */
2807c478bd9Sstevel@tonic-gate };
2817c478bd9Sstevel@tonic-gate 
2827c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32
2837c478bd9Sstevel@tonic-gate struct nfs4_svc_args32 {
2847c478bd9Sstevel@tonic-gate 	int32_t		fd;
2857c478bd9Sstevel@tonic-gate 	int32_t		cmd;
2867c478bd9Sstevel@tonic-gate 	caddr32_t	netid;
2877c478bd9Sstevel@tonic-gate 	caddr32_t	addr;
2887c478bd9Sstevel@tonic-gate 	caddr32_t	protofmly;
2897c478bd9Sstevel@tonic-gate 	caddr32_t	proto;
2907c478bd9Sstevel@tonic-gate 	struct netbuf32	addrmask;
2917c478bd9Sstevel@tonic-gate };
2927c478bd9Sstevel@tonic-gate #endif
2937c478bd9Sstevel@tonic-gate 
2947c478bd9Sstevel@tonic-gate #define	NFS4_KRPC_START	1
2957c478bd9Sstevel@tonic-gate #define	NFS4_SETPORT	2
2967c478bd9Sstevel@tonic-gate #define	NFS4_DQUERY	4
2977c478bd9Sstevel@tonic-gate 
298*cee86682Scalum /* DSS: distributed stable storage */
299*cee86682Scalum #define	NFS4_DSS_STATE_LEAF	"v4_state"
300*cee86682Scalum #define	NFS4_DSS_OLDSTATE_LEAF	"v4_oldstate"
301*cee86682Scalum #define	NFS4_DSS_DIR_MODE	0755
302*cee86682Scalum #define	NFS4_DSS_NVPAIR_NAME	"dss_pathname_array"
303*cee86682Scalum /* default storage dir */
304*cee86682Scalum #define	NFS4_DSS_VAR_DIR	"/var/nfs"
305*cee86682Scalum 
3067c478bd9Sstevel@tonic-gate #ifdef _KERNEL
3077c478bd9Sstevel@tonic-gate 
3087c478bd9Sstevel@tonic-gate #include <sys/systm.h>		/* for rval_t typedef */
3097c478bd9Sstevel@tonic-gate 
3107c478bd9Sstevel@tonic-gate extern int	nfssys(enum nfssys_op opcode, void *arg);
3117c478bd9Sstevel@tonic-gate extern int	exportfs(struct exportfs_args *, model_t, cred_t *);
3127c478bd9Sstevel@tonic-gate extern int	nfs_getfh(struct nfs_getfh_args *, model_t, cred_t *);
3137c478bd9Sstevel@tonic-gate extern int	nfs_svc(struct nfs_svc_args *, model_t);
3147c478bd9Sstevel@tonic-gate extern int	lm_svc(struct lm_svc_args *uap);
3157c478bd9Sstevel@tonic-gate extern int	lm_shutdown(void);
3167c478bd9Sstevel@tonic-gate extern int	nfsl_flush(struct nfsl_flush_args *, model_t);
3177c478bd9Sstevel@tonic-gate extern int	nfs4_svc(struct nfs4_svc_args *, model_t);
3187c478bd9Sstevel@tonic-gate extern int 	rdma_start(struct rdma_svc_args *);
3197c478bd9Sstevel@tonic-gate extern void	rfs4_clear_client_state(struct nfs4clrst_args *);
3207c478bd9Sstevel@tonic-gate extern void	nfs_idmap_args(struct nfsidmap_args *);
3217c478bd9Sstevel@tonic-gate #endif
3227c478bd9Sstevel@tonic-gate 
3237c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
3247c478bd9Sstevel@tonic-gate }
3257c478bd9Sstevel@tonic-gate #endif
3267c478bd9Sstevel@tonic-gate 
3277c478bd9Sstevel@tonic-gate #endif	/* _NFS_NFSSYS_H */
328