1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * CDDL HEADER START 3*0Sstevel@tonic-gate * 4*0Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*0Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*0Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*0Sstevel@tonic-gate * with the License. 8*0Sstevel@tonic-gate * 9*0Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*0Sstevel@tonic-gate * See the License for the specific language governing permissions 12*0Sstevel@tonic-gate * and limitations under the License. 13*0Sstevel@tonic-gate * 14*0Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*0Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*0Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*0Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*0Sstevel@tonic-gate * 20*0Sstevel@tonic-gate * CDDL HEADER END 21*0Sstevel@tonic-gate */ 22*0Sstevel@tonic-gate /* 23*0Sstevel@tonic-gate * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24*0Sstevel@tonic-gate * Use is subject to license terms. 25*0Sstevel@tonic-gate * 26*0Sstevel@tonic-gate * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 27*0Sstevel@tonic-gate * All Rights Reserved 28*0Sstevel@tonic-gate */ 29*0Sstevel@tonic-gate 30*0Sstevel@tonic-gate #ifndef _SYS_MNTENT_H 31*0Sstevel@tonic-gate #define _SYS_MNTENT_H 32*0Sstevel@tonic-gate 33*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 34*0Sstevel@tonic-gate 35*0Sstevel@tonic-gate #ifdef __cplusplus 36*0Sstevel@tonic-gate extern "C" { 37*0Sstevel@tonic-gate #endif 38*0Sstevel@tonic-gate 39*0Sstevel@tonic-gate #define MNTTAB "/etc/mnttab" 40*0Sstevel@tonic-gate #define VFSTAB "/etc/vfstab" 41*0Sstevel@tonic-gate #define MNTMAXSTR 128 42*0Sstevel@tonic-gate 43*0Sstevel@tonic-gate #define MNTTYPE_UFS "ufs" /* Unix file system */ 44*0Sstevel@tonic-gate #define MNTTYPE_NFS "nfs" /* NFS file system */ 45*0Sstevel@tonic-gate #define MNTTYPE_NFS3 "nfs3" /* NFS Version 3 file system */ 46*0Sstevel@tonic-gate #define MNTTYPE_NFS4 "nfs4" /* NFS Version 4 file system */ 47*0Sstevel@tonic-gate #define MNTTYPE_CACHEFS "cachefs" /* Cache File System */ 48*0Sstevel@tonic-gate #define MNTTYPE_PCFS "pcfs" /* PC (MSDOS) file system */ 49*0Sstevel@tonic-gate #define MNTTYPE_PC MNTTYPE_PCFS /* Deprecated name; use MNTTYPE_PCFS */ 50*0Sstevel@tonic-gate #define MNTTYPE_LOFS "lofs" /* Loop back file system */ 51*0Sstevel@tonic-gate #define MNTTYPE_LO MNTTYPE_LOFS /* Deprecated name; use MNTTYPE_LOFS */ 52*0Sstevel@tonic-gate #define MNTTYPE_HSFS "hsfs" /* High Sierra (9660) file system */ 53*0Sstevel@tonic-gate #define MNTTYPE_SWAP "swap" /* Swap file system */ 54*0Sstevel@tonic-gate #define MNTTYPE_TMPFS "tmpfs" /* Tmp volatile file system */ 55*0Sstevel@tonic-gate #define MNTTYPE_AUTOFS "autofs" /* Automounter ``file'' system */ 56*0Sstevel@tonic-gate #define MNTTYPE_MNTFS "mntfs" /* In-kernel mnttab */ 57*0Sstevel@tonic-gate #define MNTTYPE_XMEMFS "xmemfs" /* Extended memory FS, IA32 only */ 58*0Sstevel@tonic-gate #define MNTTYPE_CTFS "ctfs" /* Contract file system */ 59*0Sstevel@tonic-gate #define MNTTYPE_OBJFS "objfs" /* Kernel object file system */ 60*0Sstevel@tonic-gate 61*0Sstevel@tonic-gate #define MNTOPT_RO "ro" /* Read only */ 62*0Sstevel@tonic-gate #define MNTOPT_RW "rw" /* Read/write */ 63*0Sstevel@tonic-gate #define MNTOPT_RQ "rq" /* Read/write with quotas */ 64*0Sstevel@tonic-gate #define MNTOPT_QUOTA "quota" /* Check quotas */ 65*0Sstevel@tonic-gate #define MNTOPT_NOQUOTA "noquota" /* Don't check quotas */ 66*0Sstevel@tonic-gate #define MNTOPT_ONERROR "onerror" /* action to taken on error */ 67*0Sstevel@tonic-gate #define MNTOPT_SOFT "soft" /* Soft mount */ 68*0Sstevel@tonic-gate #define MNTOPT_SEMISOFT "semisoft" /* partial soft, uncommited interface */ 69*0Sstevel@tonic-gate #define MNTOPT_HARD "hard" /* Hard mount */ 70*0Sstevel@tonic-gate #define MNTOPT_SUID "suid" /* Both setuid and devices allowed */ 71*0Sstevel@tonic-gate #define MNTOPT_NOSUID "nosuid" /* Neither setuid nor devices allowed */ 72*0Sstevel@tonic-gate #define MNTOPT_DEVICES "devices" /* Device-special allowed */ 73*0Sstevel@tonic-gate #define MNTOPT_NODEVICES "nodevices" /* Device-special disallowed */ 74*0Sstevel@tonic-gate #define MNTOPT_SETUID "setuid" /* Set uid allowed */ 75*0Sstevel@tonic-gate #define MNTOPT_NOSETUID "nosetuid" /* Set uid not allowed */ 76*0Sstevel@tonic-gate #define MNTOPT_GRPID "grpid" /* SysV-compatible gid on create */ 77*0Sstevel@tonic-gate #define MNTOPT_REMOUNT "remount" /* Change mount options */ 78*0Sstevel@tonic-gate #define MNTOPT_NOSUB "nosub" /* Disallow mounts on subdirs */ 79*0Sstevel@tonic-gate #define MNTOPT_MULTI "multi" /* Do multi-component lookup */ 80*0Sstevel@tonic-gate #define MNTOPT_INTR "intr" /* Allow NFS ops to be interrupted */ 81*0Sstevel@tonic-gate #define MNTOPT_NOINTR "nointr" /* Don't allow interrupted ops */ 82*0Sstevel@tonic-gate #define MNTOPT_PORT "port" /* NFS server IP port number */ 83*0Sstevel@tonic-gate #define MNTOPT_SECURE "secure" /* Secure (AUTH_DES) mounting */ 84*0Sstevel@tonic-gate #define MNTOPT_RSIZE "rsize" /* Max NFS read size (bytes) */ 85*0Sstevel@tonic-gate #define MNTOPT_WSIZE "wsize" /* Max NFS write size (bytes) */ 86*0Sstevel@tonic-gate #define MNTOPT_TIMEO "timeo" /* NFS timeout (1/10 sec) */ 87*0Sstevel@tonic-gate #define MNTOPT_RETRANS "retrans" /* Max retransmissions (soft mnts) */ 88*0Sstevel@tonic-gate #define MNTOPT_ACTIMEO "actimeo" /* Attr cache timeout (sec) */ 89*0Sstevel@tonic-gate #define MNTOPT_ACREGMIN "acregmin" /* Min attr cache timeout (files) */ 90*0Sstevel@tonic-gate #define MNTOPT_ACREGMAX "acregmax" /* Max attr cache timeout (files) */ 91*0Sstevel@tonic-gate #define MNTOPT_ACDIRMIN "acdirmin" /* Min attr cache timeout (dirs) */ 92*0Sstevel@tonic-gate #define MNTOPT_ACDIRMAX "acdirmax" /* Max attr cache timeout (dirs) */ 93*0Sstevel@tonic-gate #define MNTOPT_NOAC "noac" /* Don't cache attributes at all */ 94*0Sstevel@tonic-gate #define MNTOPT_NOCTO "nocto" /* No close-to-open consistency */ 95*0Sstevel@tonic-gate #define MNTOPT_BG "bg" /* Do mount retries in background */ 96*0Sstevel@tonic-gate #define MNTOPT_FG "fg" /* Do mount retries in foreground */ 97*0Sstevel@tonic-gate #define MNTOPT_RETRY "retry" /* Number of mount retries */ 98*0Sstevel@tonic-gate #define MNTOPT_DEV "dev" /* Device id of mounted fs */ 99*0Sstevel@tonic-gate #define MNTOPT_POSIX "posix" /* Get static pathconf for mount */ 100*0Sstevel@tonic-gate #define MNTOPT_MAP "map" /* Automount map */ 101*0Sstevel@tonic-gate #define MNTOPT_DIRECT "direct" /* Automount direct map mount */ 102*0Sstevel@tonic-gate #define MNTOPT_INDIRECT "indirect" /* Automount indirect map mount */ 103*0Sstevel@tonic-gate #define MNTOPT_LLOCK "llock" /* Local locking (no lock manager) */ 104*0Sstevel@tonic-gate #define MNTOPT_IGNORE "ignore" /* Ignore this entry */ 105*0Sstevel@tonic-gate #define MNTOPT_VERS "vers" /* protocol version number indicator */ 106*0Sstevel@tonic-gate #define MNTOPT_PROTO "proto" /* protocol network_id indicator */ 107*0Sstevel@tonic-gate #define MNTOPT_SEC "sec" /* Security flavor indicator */ 108*0Sstevel@tonic-gate #define MNTOPT_SYNCDIR "syncdir" /* Synchronous local directory ops */ 109*0Sstevel@tonic-gate #define MNTOPT_NOSETSEC "nosec" /* Do no allow setting sec attrs */ 110*0Sstevel@tonic-gate #define MNTOPT_NOPRINT "noprint" /* Do not print messages */ 111*0Sstevel@tonic-gate #define MNTOPT_LARGEFILES "largefiles" /* allow large files */ 112*0Sstevel@tonic-gate #define MNTOPT_NOLARGEFILES "nolargefiles" /* don't allow large files */ 113*0Sstevel@tonic-gate #define MNTOPT_FORCEDIRECTIO "forcedirectio" /* Force DirectIO on all files */ 114*0Sstevel@tonic-gate #define MNTOPT_NOFORCEDIRECTIO "noforcedirectio" /* No Force DirectIO */ 115*0Sstevel@tonic-gate #define MNTOPT_DISABLEDIRECTIO "disabledirectio" /* Disable DirectIO ioctls */ 116*0Sstevel@tonic-gate #define MNTOPT_PUBLIC "public" /* Use NFS public file handlee */ 117*0Sstevel@tonic-gate #define MNTOPT_LOGGING "logging" /* enable logging */ 118*0Sstevel@tonic-gate #define MNTOPT_NOLOGGING "nologging" /* disable logging */ 119*0Sstevel@tonic-gate #define MNTOPT_NOATIME "noatime" /* Do not update i_atime for inodes */ 120*0Sstevel@tonic-gate #define MNTOPT_GLOBAL "global" /* Cluster-wide global mount */ 121*0Sstevel@tonic-gate #define MNTOPT_NOGLOBAL "noglobal" /* Mount local to single node */ 122*0Sstevel@tonic-gate #define MNTOPT_DFRATIME "dfratime" /* Deferred access time updates */ 123*0Sstevel@tonic-gate #define MNTOPT_NODFRATIME "nodfratime" /* No Deferred access time updates */ 124*0Sstevel@tonic-gate #define MNTOPT_NBMAND "nbmand" /* allow non-blocking mandatory locks */ 125*0Sstevel@tonic-gate #define MNTOPT_NONBMAND "nonbmand" /* deny non-blocking mandatory locks */ 126*0Sstevel@tonic-gate #define MNTOPT_XATTR "xattr" /* enable extended attributes */ 127*0Sstevel@tonic-gate #define MNTOPT_NOXATTR "noxattr" /* disable extended attributes */ 128*0Sstevel@tonic-gate #define MNTOPT_EXEC "exec" /* enable executables */ 129*0Sstevel@tonic-gate #define MNTOPT_NOEXEC "noexec" /* disable executables */ 130*0Sstevel@tonic-gate #define MNTOPT_RESTRICT "restrict" /* restricted autofs mount */ 131*0Sstevel@tonic-gate #define MNTOPT_BROWSE "browse" /* browsable autofs mount */ 132*0Sstevel@tonic-gate #define MNTOPT_NOBROWSE "nobrowse" /* non-browsable autofs mount */ 133*0Sstevel@tonic-gate 134*0Sstevel@tonic-gate #ifdef __cplusplus 135*0Sstevel@tonic-gate } 136*0Sstevel@tonic-gate #endif 137*0Sstevel@tonic-gate 138*0Sstevel@tonic-gate #endif /* _SYS_MNTENT_H */ 139