Print this page
*** NO COMMENTS ***
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libshare/nfs/libshare_nfs.h
+++ new/usr/src/lib/libshare/nfs/libshare_nfs.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 (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 */
25 25
26 26 /*
27 27 * basic API declarations for share management
28 28 */
29 29
30 30 #ifndef _LIBSHARE_NFS_H
31 31 #define _LIBSHARE_NFS_H
32 32
33 33 #ifdef __cplusplus
34 34 extern "C" {
35 35 #endif
36 36
37 37 /* property names used by NFS */
38 38 #define SHOPT_RO "ro"
39 39 #define SHOPT_RW "rw"
40 40 #define SHOPT_NONE "none"
41 41 #define SHOPT_ROOT_MAPPING "root_mapping"
42 42
43 43 #define SHOPT_SEC "sec"
44 44 #define SHOPT_SECURE "secure"
45 45 #define SHOPT_ROOT "root"
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
46 46 #define SHOPT_ANON "anon"
47 47 #define SHOPT_WINDOW "window"
48 48 #define SHOPT_NOSUB "nosub"
49 49 #define SHOPT_NOSUID "nosuid"
50 50 #define SHOPT_ACLOK "aclok"
51 51 #define SHOPT_PUBLIC "public"
52 52 #define SHOPT_INDEX "index"
53 53 #define SHOPT_LOG "log"
54 54 #define SHOPT_CKSUM "cksum"
55 55 #define SHOPT_NOACLFAB "noaclfab"
56 +#define SHOPT_NOHIDE "nohide"
56 57
57 58 /*
58 59 * defined options types. These should be in a file rather than
59 60 * compiled in. Until there is a plugin mechanism to add new types,
60 61 * this is sufficient.
61 62 */
62 63 #define OPT_TYPE_ANY 0
63 64 #define OPT_TYPE_STRING 1
64 65 #define OPT_TYPE_BOOLEAN 2
65 66 #define OPT_TYPE_NUMBER 3
66 67 #define OPT_TYPE_RANGE 4
67 68 #define OPT_TYPE_USER 5
68 69 #define OPT_TYPE_ACCLIST 6
69 70 #define OPT_TYPE_DEPRECATED 7
70 71 #define OPT_TYPE_SECURITY 8
71 72 #define OPT_TYPE_PATH 9
72 73 #define OPT_TYPE_FILE 10
73 74 #define OPT_TYPE_LOGTAG 11
74 75 #define OPT_TYPE_STRINGSET 12
75 76 #define OPT_TYPE_DOMAIN 13
76 77 #define OPT_TYPE_ONOFF 14
77 78 #define OPT_TYPE_PROTOCOL 15
78 79
79 80 #define OPT_SHARE_ONLY 1
80 81
81 82 struct option_defs {
82 83 char *tag;
83 84 int index;
84 85 int type;
85 86 int share; /* share only option */
86 87 int (*check)(sa_handle_t, char *);
87 88 };
88 89
89 90 /*
90 91 * service bit mask values
91 92 */
92 93 #define SVC_LOCKD 0x0001
93 94 #define SVC_STATD 0x0002
94 95 #define SVC_NFSD 0x0004
95 96 #define SVC_MOUNTD 0x0008
96 97 #define SVC_NFS4CBD 0x0010
97 98 #define SVC_NFSMAPID 0x0020
98 99 #define SVC_RQUOTAD 0x0040
99 100 #define SVC_NFSLOGD 0x0080
100 101 #define SVC_REPARSED 0x0100
101 102 #define SVC_CLIENT 0x0200
102 103
103 104 /*
104 105 * NFS Restart/Refresh options
105 106 */
106 107 #define NFSD_REFRESH 0x0001
107 108 #define NFSD_RESTART 0x0002
108 109 #define NLOCKMGR_REFESH 0x0003
109 110 #define NLOCKMGR_RESTART 0x0004
110 111 #define MAPID_REFRESH 0x0005
111 112 #define MAPID_RESTART 0x0006
112 113
113 114 /*
114 115 * place holder for future service -- will move to daemon_utils.h when
115 116 * fully implemented.
116 117 */
117 118 #define NFSLOGD "svc:/network/nfs/log:default"
118 119
119 120 /* The NFS export structure flags for read/write modes */
120 121 #define NFS_RWMODES (M_RO|M_ROL|M_RW|M_RWL)
121 122
122 123 /* other values */
123 124 /* max size of 64-bit integer in digits plus a bit extra */
124 125 #define MAXDIGITS 32
125 126
126 127 /* external variable */
127 128 extern boolean_t nfsl_errs_to_syslog;
128 129
129 130 /* imported functions */
130 131 extern int exportfs(char *, struct exportdata *);
131 132 extern int nfs_getseconfig_default(seconfig_t *);
132 133 extern int nfs_getseconfig_byname(char *, seconfig_t *);
133 134 extern bool_t nfs_get_root_principal(seconfig_t *, char *, caddr_t *);
134 135 extern int nfsl_getconfig_list(nfsl_config_t **);
135 136 extern void nfsl_freeconfig_list(nfsl_config_t **);
136 137 extern nfsl_config_t *nfsl_findconfig(nfsl_config_t *, char *, int *);
137 138
138 139 #ifdef __cplusplus
139 140 }
140 141 #endif
141 142
142 143 #endif /* _LIBSHARE_NFS_H */
↓ open down ↓ |
77 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX