10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 52621Sllai1 * Common Development and Distribution License (the "License"). 62621Sllai1 * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate /* 226007Sthurlow * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate * Use is subject to license terms. 240Sstevel@tonic-gate * 250Sstevel@tonic-gate * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 260Sstevel@tonic-gate * All Rights Reserved 270Sstevel@tonic-gate */ 280Sstevel@tonic-gate 290Sstevel@tonic-gate #ifndef _SYS_MNTENT_H 300Sstevel@tonic-gate #define _SYS_MNTENT_H 310Sstevel@tonic-gate 320Sstevel@tonic-gate #ifdef __cplusplus 330Sstevel@tonic-gate extern "C" { 340Sstevel@tonic-gate #endif 350Sstevel@tonic-gate 360Sstevel@tonic-gate #define MNTTAB "/etc/mnttab" 370Sstevel@tonic-gate #define VFSTAB "/etc/vfstab" 380Sstevel@tonic-gate #define MNTMAXSTR 128 390Sstevel@tonic-gate 40789Sahrens #define MNTTYPE_ZFS "zfs" /* ZFS file system */ 410Sstevel@tonic-gate #define MNTTYPE_UFS "ufs" /* Unix file system */ 426007Sthurlow #define MNTTYPE_SMBFS "smbfs" /* SMBFS file system */ 430Sstevel@tonic-gate #define MNTTYPE_NFS "nfs" /* NFS file system */ 440Sstevel@tonic-gate #define MNTTYPE_NFS3 "nfs3" /* NFS Version 3 file system */ 450Sstevel@tonic-gate #define MNTTYPE_NFS4 "nfs4" /* NFS Version 4 file system */ 460Sstevel@tonic-gate #define MNTTYPE_CACHEFS "cachefs" /* Cache File System */ 470Sstevel@tonic-gate #define MNTTYPE_PCFS "pcfs" /* PC (MSDOS) file system */ 480Sstevel@tonic-gate #define MNTTYPE_PC MNTTYPE_PCFS /* Deprecated name; use MNTTYPE_PCFS */ 490Sstevel@tonic-gate #define MNTTYPE_LOFS "lofs" /* Loop back file system */ 500Sstevel@tonic-gate #define MNTTYPE_LO MNTTYPE_LOFS /* Deprecated name; use MNTTYPE_LOFS */ 510Sstevel@tonic-gate #define MNTTYPE_HSFS "hsfs" /* High Sierra (9660) file system */ 520Sstevel@tonic-gate #define MNTTYPE_SWAP "swap" /* Swap file system */ 530Sstevel@tonic-gate #define MNTTYPE_TMPFS "tmpfs" /* Tmp volatile file system */ 540Sstevel@tonic-gate #define MNTTYPE_AUTOFS "autofs" /* Automounter ``file'' system */ 550Sstevel@tonic-gate #define MNTTYPE_MNTFS "mntfs" /* In-kernel mnttab */ 562621Sllai1 #define MNTTYPE_DEV "dev" /* /dev file system */ 570Sstevel@tonic-gate #define MNTTYPE_CTFS "ctfs" /* Contract file system */ 580Sstevel@tonic-gate #define MNTTYPE_OBJFS "objfs" /* Kernel object file system */ 593957Sth199096 #define MNTTYPE_SHAREFS "sharefs" /* Kernel sharetab file system */ 603957Sth199096 610Sstevel@tonic-gate 620Sstevel@tonic-gate #define MNTOPT_RO "ro" /* Read only */ 630Sstevel@tonic-gate #define MNTOPT_RW "rw" /* Read/write */ 640Sstevel@tonic-gate #define MNTOPT_RQ "rq" /* Read/write with quotas */ 650Sstevel@tonic-gate #define MNTOPT_QUOTA "quota" /* Check quotas */ 660Sstevel@tonic-gate #define MNTOPT_NOQUOTA "noquota" /* Don't check quotas */ 670Sstevel@tonic-gate #define MNTOPT_ONERROR "onerror" /* action to taken on error */ 680Sstevel@tonic-gate #define MNTOPT_SOFT "soft" /* Soft mount */ 690Sstevel@tonic-gate #define MNTOPT_SEMISOFT "semisoft" /* partial soft, uncommited interface */ 700Sstevel@tonic-gate #define MNTOPT_HARD "hard" /* Hard mount */ 710Sstevel@tonic-gate #define MNTOPT_SUID "suid" /* Both setuid and devices allowed */ 720Sstevel@tonic-gate #define MNTOPT_NOSUID "nosuid" /* Neither setuid nor devices allowed */ 730Sstevel@tonic-gate #define MNTOPT_DEVICES "devices" /* Device-special allowed */ 740Sstevel@tonic-gate #define MNTOPT_NODEVICES "nodevices" /* Device-special disallowed */ 750Sstevel@tonic-gate #define MNTOPT_SETUID "setuid" /* Set uid allowed */ 760Sstevel@tonic-gate #define MNTOPT_NOSETUID "nosetuid" /* Set uid not allowed */ 770Sstevel@tonic-gate #define MNTOPT_GRPID "grpid" /* SysV-compatible gid on create */ 780Sstevel@tonic-gate #define MNTOPT_REMOUNT "remount" /* Change mount options */ 790Sstevel@tonic-gate #define MNTOPT_NOSUB "nosub" /* Disallow mounts on subdirs */ 800Sstevel@tonic-gate #define MNTOPT_MULTI "multi" /* Do multi-component lookup */ 810Sstevel@tonic-gate #define MNTOPT_INTR "intr" /* Allow NFS ops to be interrupted */ 820Sstevel@tonic-gate #define MNTOPT_NOINTR "nointr" /* Don't allow interrupted ops */ 830Sstevel@tonic-gate #define MNTOPT_PORT "port" /* NFS server IP port number */ 840Sstevel@tonic-gate #define MNTOPT_SECURE "secure" /* Secure (AUTH_DES) mounting */ 850Sstevel@tonic-gate #define MNTOPT_RSIZE "rsize" /* Max NFS read size (bytes) */ 860Sstevel@tonic-gate #define MNTOPT_WSIZE "wsize" /* Max NFS write size (bytes) */ 870Sstevel@tonic-gate #define MNTOPT_TIMEO "timeo" /* NFS timeout (1/10 sec) */ 880Sstevel@tonic-gate #define MNTOPT_RETRANS "retrans" /* Max retransmissions (soft mnts) */ 890Sstevel@tonic-gate #define MNTOPT_ACTIMEO "actimeo" /* Attr cache timeout (sec) */ 900Sstevel@tonic-gate #define MNTOPT_ACREGMIN "acregmin" /* Min attr cache timeout (files) */ 910Sstevel@tonic-gate #define MNTOPT_ACREGMAX "acregmax" /* Max attr cache timeout (files) */ 920Sstevel@tonic-gate #define MNTOPT_ACDIRMIN "acdirmin" /* Min attr cache timeout (dirs) */ 930Sstevel@tonic-gate #define MNTOPT_ACDIRMAX "acdirmax" /* Max attr cache timeout (dirs) */ 940Sstevel@tonic-gate #define MNTOPT_NOAC "noac" /* Don't cache attributes at all */ 950Sstevel@tonic-gate #define MNTOPT_NOCTO "nocto" /* No close-to-open consistency */ 960Sstevel@tonic-gate #define MNTOPT_BG "bg" /* Do mount retries in background */ 970Sstevel@tonic-gate #define MNTOPT_FG "fg" /* Do mount retries in foreground */ 980Sstevel@tonic-gate #define MNTOPT_RETRY "retry" /* Number of mount retries */ 990Sstevel@tonic-gate #define MNTOPT_DEV "dev" /* Device id of mounted fs */ 1000Sstevel@tonic-gate #define MNTOPT_POSIX "posix" /* Get static pathconf for mount */ 1010Sstevel@tonic-gate #define MNTOPT_MAP "map" /* Automount map */ 1020Sstevel@tonic-gate #define MNTOPT_DIRECT "direct" /* Automount direct map mount */ 1030Sstevel@tonic-gate #define MNTOPT_INDIRECT "indirect" /* Automount indirect map mount */ 1040Sstevel@tonic-gate #define MNTOPT_LLOCK "llock" /* Local locking (no lock manager) */ 1050Sstevel@tonic-gate #define MNTOPT_IGNORE "ignore" /* Ignore this entry */ 1060Sstevel@tonic-gate #define MNTOPT_VERS "vers" /* protocol version number indicator */ 1070Sstevel@tonic-gate #define MNTOPT_PROTO "proto" /* protocol network_id indicator */ 1080Sstevel@tonic-gate #define MNTOPT_SEC "sec" /* Security flavor indicator */ 1090Sstevel@tonic-gate #define MNTOPT_SYNCDIR "syncdir" /* Synchronous local directory ops */ 1100Sstevel@tonic-gate #define MNTOPT_NOSETSEC "nosec" /* Do no allow setting sec attrs */ 1110Sstevel@tonic-gate #define MNTOPT_NOPRINT "noprint" /* Do not print messages */ 1120Sstevel@tonic-gate #define MNTOPT_LARGEFILES "largefiles" /* allow large files */ 1130Sstevel@tonic-gate #define MNTOPT_NOLARGEFILES "nolargefiles" /* don't allow large files */ 1140Sstevel@tonic-gate #define MNTOPT_FORCEDIRECTIO "forcedirectio" /* Force DirectIO on all files */ 1150Sstevel@tonic-gate #define MNTOPT_NOFORCEDIRECTIO "noforcedirectio" /* No Force DirectIO */ 1160Sstevel@tonic-gate #define MNTOPT_DISABLEDIRECTIO "disabledirectio" /* Disable DirectIO ioctls */ 1170Sstevel@tonic-gate #define MNTOPT_PUBLIC "public" /* Use NFS public file handlee */ 1180Sstevel@tonic-gate #define MNTOPT_LOGGING "logging" /* enable logging */ 1190Sstevel@tonic-gate #define MNTOPT_NOLOGGING "nologging" /* disable logging */ 120789Sahrens #define MNTOPT_ATIME "atime" /* update atime for files */ 121789Sahrens #define MNTOPT_NOATIME "noatime" /* do not update atime for files */ 1220Sstevel@tonic-gate #define MNTOPT_GLOBAL "global" /* Cluster-wide global mount */ 1230Sstevel@tonic-gate #define MNTOPT_NOGLOBAL "noglobal" /* Mount local to single node */ 1240Sstevel@tonic-gate #define MNTOPT_DFRATIME "dfratime" /* Deferred access time updates */ 1250Sstevel@tonic-gate #define MNTOPT_NODFRATIME "nodfratime" /* No Deferred access time updates */ 1260Sstevel@tonic-gate #define MNTOPT_NBMAND "nbmand" /* allow non-blocking mandatory locks */ 1270Sstevel@tonic-gate #define MNTOPT_NONBMAND "nonbmand" /* deny non-blocking mandatory locks */ 1280Sstevel@tonic-gate #define MNTOPT_XATTR "xattr" /* enable extended attributes */ 1290Sstevel@tonic-gate #define MNTOPT_NOXATTR "noxattr" /* disable extended attributes */ 1300Sstevel@tonic-gate #define MNTOPT_EXEC "exec" /* enable executables */ 1310Sstevel@tonic-gate #define MNTOPT_NOEXEC "noexec" /* disable executables */ 1320Sstevel@tonic-gate #define MNTOPT_RESTRICT "restrict" /* restricted autofs mount */ 1330Sstevel@tonic-gate #define MNTOPT_BROWSE "browse" /* browsable autofs mount */ 1340Sstevel@tonic-gate #define MNTOPT_NOBROWSE "nobrowse" /* non-browsable autofs mount */ 135*7693SVallish.Vaidyeshwara@Sun.COM #define MNTOPT_ZONE "zone" /* zone name - set only for non global zones */ 1360Sstevel@tonic-gate 1370Sstevel@tonic-gate #ifdef __cplusplus 1380Sstevel@tonic-gate } 1390Sstevel@tonic-gate #endif 1400Sstevel@tonic-gate 1410Sstevel@tonic-gate #endif /* _SYS_MNTENT_H */ 142