Print this page
11083 support NFS server in zone
Portions contributed by: Dan Kruchinin <dan.kruchinin@nexenta.com>
Portions contributed by: Stepan Zastupov <stepan.zastupov@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>
Portions contributed by: Mike Zeller <mike@mikezeller.net>
Portions contributed by: Dan McDonald <danmcd@joyent.com>
Portions contributed by: Gordon Ross <gordon.w.ross@gmail.com>
Portions contributed by: Vitaliy Gusev <gusev.vitaliy@gmail.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Jason King <jbk@joyent.com>
Reviewed by: C Fraire <cfraire@me.com>
Change-Id: I22f289d357503f9b48a0bc2482cc4328a6d43d16
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/uts/common/nfs/nfs_dispatch.h
+++ new/usr/src/uts/common/nfs/nfs_dispatch.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 24 * Use is subject to license terms.
25 25 */
26 26 /*
27 27 * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
28 28 */
29 29
30 30 /*
31 31 * Copyright (c) 1983,1984,1985,1986,1987,1988,1989 AT&T.
32 32 * All rights reserved.
33 33 * Use is subject to license terms.
34 34 */
35 35
36 36
37 37 #ifndef _NFS_DISPATCH_H
38 38 #define _NFS_DISPATCH_H
39 39
40 40 #ifdef __cplusplus
41 41 extern "C" {
42 42 #endif
43 43
44 44 /*
45 45 * RPC dispatch table
46 46 * Indexed by version, proc
47 47 */
48 48
49 49 typedef struct rpcdisp {
50 50 void (*dis_proc)(); /* proc to call */
51 51 xdrproc_t dis_xdrargs; /* xdr routine to get args */
52 52 xdrproc_t dis_fastxdrargs; /* `fast' xdr routine to get args */
53 53 int dis_argsz; /* sizeof args */
54 54 xdrproc_t dis_xdrres; /* xdr routine to put results */
55 55 xdrproc_t dis_fastxdrres; /* `fast' xdr routine to put results */
56 56 int dis_ressz; /* size of results */
57 57 void (*dis_resfree)(); /* frees space allocated by proc */
58 58 int dis_flags; /* flags, see below */
59 59 void *(*dis_getfh)(); /* returns the fhandle for the req */
60 60 } rpcdisp_t;
61 61
62 62 #define RPC_IDEMPOTENT 0x1 /* idempotent or not */
63 63 /*
64 64 * Be very careful about which NFS procedures get the RPC_ALLOWANON bit.
65 65 * Right now, if this bit is on, we ignore the results of per NFS request
|
↓ open down ↓ |
65 lines elided |
↑ open up ↑ |
66 66 * access control.
67 67 */
68 68 #define RPC_ALLOWANON 0x2 /* allow anonymous access */
69 69 #define RPC_MAPRESP 0x4 /* use mapped response buffer */
70 70 #define RPC_AVOIDWORK 0x8 /* do work avoidance for dups */
71 71 #define RPC_PUBLICFH_OK 0x10 /* allow use of public filehandle */
72 72
73 73 typedef struct rpc_disptable {
74 74 int dis_nprocs;
75 75 char **dis_procnames;
76 - kstat_named_t **dis_proccntp;
77 76 struct rpcdisp *dis_table;
78 77 } rpc_disptable_t;
79 78
80 79 void rpc_null(caddr_t *, caddr_t *, struct exportinfo *, struct svc_req *,
81 80 cred_t *, bool_t);
82 81
83 82 #ifdef __cplusplus
84 83 }
85 84 #endif
86 85
87 86 #endif /* _NFS_DISPATCH_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX