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 5a237e38eSth199096 * Common Development and Distribution License (the "License"). 6a237e38eSth199096 * 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 */ 21a237e38eSth199096 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 */ 26*5cb0d679SMarcel Telka /* 27*5cb0d679SMarcel Telka * Copyright 2014 Nexenta Systems, Inc. All rights reserved. 28*5cb0d679SMarcel Telka */ 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ 317c478bd9Sstevel@tonic-gate /* 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 38a237e38eSth199096 /* 39a237e38eSth199096 * Note: <sharefs/share.h> must be included before this file. 40a237e38eSth199096 */ 41a237e38eSth199096 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" 66*5cb0d679SMarcel Telka #define SHOPT_UIDMAP "uidmap" 67*5cb0d679SMarcel Telka #define SHOPT_GIDMAP "gidmap" 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gate /* XXX The following are added for testing volatile fh's purposes only */ 707c478bd9Sstevel@tonic-gate #ifdef VOLATILE_FH_TEST 717c478bd9Sstevel@tonic-gate #define SHOPT_VOLFH "volfh" 727c478bd9Sstevel@tonic-gate #endif /* VOLATILE_FH_TEST */ 737c478bd9Sstevel@tonic-gate 74a237e38eSth199096 int getshare(FILE *, share_t **); 757c478bd9Sstevel@tonic-gate char *getshareopt(char *, char *); 76a237e38eSth199096 share_t *sharedup(share_t *); 77a237e38eSth199096 void sharefree(share_t *); 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate #ifdef __cplusplus 807c478bd9Sstevel@tonic-gate } 817c478bd9Sstevel@tonic-gate #endif 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate #endif /* !_SHARETAB_H */ 84