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