xref: /illumos-gate/usr/src/cmd/fs.d/nfs/lib/sharetab.h (revision f7db5903)
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
5a237e38eSth  * Common Development and Distribution License (the "License").
6a237e38eSth  * 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  */
21a237e38eSth 
227c478bd9Sstevel@tonic-gate /*
236764e83bSVallish Vaidyeshwara  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
257c478bd9Sstevel@tonic-gate  */
265cb0d679SMarcel Telka /*
275cb0d679SMarcel Telka  * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
285cb0d679SMarcel Telka  */
297c478bd9Sstevel@tonic-gate 
307c478bd9Sstevel@tonic-gate /*	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T	*/
31*f7db5903SVitaliy Gusev /*	All Rights Reserved	*/
327c478bd9Sstevel@tonic-gate 
337c478bd9Sstevel@tonic-gate /*
347c478bd9Sstevel@tonic-gate  * Portions of this source code were derived from Berkeley 4.3 BSD
357c478bd9Sstevel@tonic-gate  * under license from the Regents of the University of California.
367c478bd9Sstevel@tonic-gate  */
377c478bd9Sstevel@tonic-gate 
38a237e38eSth /*
39a237e38eSth  * Note: <sharefs/share.h> must be included before this file.
40a237e38eSth  */
41a237e38eSth 
427c478bd9Sstevel@tonic-gate #ifndef _SHARETAB_H
437c478bd9Sstevel@tonic-gate #define	_SHARETAB_H
447c478bd9Sstevel@tonic-gate 
457c478bd9Sstevel@tonic-gate #ifdef __cplusplus
467c478bd9Sstevel@tonic-gate extern "C" {
477c478bd9Sstevel@tonic-gate #endif
487c478bd9Sstevel@tonic-gate 
497c478bd9Sstevel@tonic-gate #define	SHOPT_RO	"ro"
507c478bd9Sstevel@tonic-gate #define	SHOPT_RW	"rw"
51b89a8333Snatalie li - Sun Microsystems - Irvine United States #define	SHOPT_NONE	"none"
52b89a8333Snatalie li - Sun Microsystems - Irvine United States #define	SHOPT_ROOT_MAPPING	"root_mapping"
537c478bd9Sstevel@tonic-gate 
547c478bd9Sstevel@tonic-gate #define	SHOPT_SEC	"sec"
557c478bd9Sstevel@tonic-gate #define	SHOPT_SECURE	"secure"
567c478bd9Sstevel@tonic-gate #define	SHOPT_ROOT	"root"
577c478bd9Sstevel@tonic-gate #define	SHOPT_ANON	"anon"
587c478bd9Sstevel@tonic-gate #define	SHOPT_WINDOW	"window"
597c478bd9Sstevel@tonic-gate #define	SHOPT_NOSUB	"nosub"
607c478bd9Sstevel@tonic-gate #define	SHOPT_NOSUID	"nosuid"
617c478bd9Sstevel@tonic-gate #define	SHOPT_ACLOK	"aclok"
627c478bd9Sstevel@tonic-gate #define	SHOPT_PUBLIC	"public"
637c478bd9Sstevel@tonic-gate #define	SHOPT_INDEX	"index"
647c478bd9Sstevel@tonic-gate #define	SHOPT_LOG	"log"
656764e83bSVallish Vaidyeshwara #define	SHOPT_NOACLFAB	"noaclfab"
665cb0d679SMarcel Telka #define	SHOPT_UIDMAP	"uidmap"
675cb0d679SMarcel Telka #define	SHOPT_GIDMAP	"gidmap"
68*f7db5903SVitaliy Gusev #define	SHOPT_NOHIDE	"nohide"
697c478bd9Sstevel@tonic-gate 
707c478bd9Sstevel@tonic-gate /* XXX The following are added for testing volatile fh's purposes only */
717c478bd9Sstevel@tonic-gate #ifdef VOLATILE_FH_TEST
727c478bd9Sstevel@tonic-gate #define	SHOPT_VOLFH	"volfh"
737c478bd9Sstevel@tonic-gate #endif /* VOLATILE_FH_TEST */
747c478bd9Sstevel@tonic-gate 
75a237e38eSth int		getshare(FILE *, share_t **);
76a237e38eSth char		*getshareopt(char *, char *);
77a237e38eSth share_t		*sharedup(share_t *);
78a237e38eSth void		sharefree(share_t *);
797c478bd9Sstevel@tonic-gate 
807c478bd9Sstevel@tonic-gate #ifdef __cplusplus
817c478bd9Sstevel@tonic-gate }
827c478bd9Sstevel@tonic-gate #endif
837c478bd9Sstevel@tonic-gate 
847c478bd9Sstevel@tonic-gate #endif /* !_SHARETAB_H */
85