xref: /illumos-gate/usr/src/uts/common/sys/mntent.h (revision 4bff34e37def8a90f9194d81bc345c52ba20086a)
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
5facf4a8dSllai  * Common Development and Distribution License (the "License").
6facf4a8dSllai  * 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  */
217c478bd9Sstevel@tonic-gate /*
22*4bff34e3Sthurlow  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
247c478bd9Sstevel@tonic-gate  *
257c478bd9Sstevel@tonic-gate  *	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
267c478bd9Sstevel@tonic-gate  *		All Rights Reserved
277c478bd9Sstevel@tonic-gate  */
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate #ifndef _SYS_MNTENT_H
307c478bd9Sstevel@tonic-gate #define	_SYS_MNTENT_H
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
337c478bd9Sstevel@tonic-gate 
347c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
357c478bd9Sstevel@tonic-gate extern "C" {
367c478bd9Sstevel@tonic-gate #endif
377c478bd9Sstevel@tonic-gate 
387c478bd9Sstevel@tonic-gate #define	MNTTAB		"/etc/mnttab"
397c478bd9Sstevel@tonic-gate #define	VFSTAB		"/etc/vfstab"
407c478bd9Sstevel@tonic-gate #define	MNTMAXSTR	128
417c478bd9Sstevel@tonic-gate 
42fa9e4066Sahrens #define	MNTTYPE_ZFS	"zfs"		/* ZFS file system */
437c478bd9Sstevel@tonic-gate #define	MNTTYPE_UFS	"ufs"		/* Unix file system */
44*4bff34e3Sthurlow #define	MNTTYPE_SMBFS	"smbfs"		/* SMBFS file system */
457c478bd9Sstevel@tonic-gate #define	MNTTYPE_NFS	"nfs"		/* NFS file system */
467c478bd9Sstevel@tonic-gate #define	MNTTYPE_NFS3	"nfs3"		/* NFS Version 3 file system */
477c478bd9Sstevel@tonic-gate #define	MNTTYPE_NFS4	"nfs4"		/* NFS Version 4 file system */
487c478bd9Sstevel@tonic-gate #define	MNTTYPE_CACHEFS	"cachefs"	/* Cache File System */
497c478bd9Sstevel@tonic-gate #define	MNTTYPE_PCFS	"pcfs"		/* PC (MSDOS) file system */
507c478bd9Sstevel@tonic-gate #define	MNTTYPE_PC	MNTTYPE_PCFS	/* Deprecated name; use MNTTYPE_PCFS */
517c478bd9Sstevel@tonic-gate #define	MNTTYPE_LOFS	"lofs"		/* Loop back file system */
527c478bd9Sstevel@tonic-gate #define	MNTTYPE_LO	MNTTYPE_LOFS	/* Deprecated name; use MNTTYPE_LOFS */
537c478bd9Sstevel@tonic-gate #define	MNTTYPE_HSFS	"hsfs"		/* High Sierra (9660) file system */
547c478bd9Sstevel@tonic-gate #define	MNTTYPE_SWAP	"swap"		/* Swap file system */
557c478bd9Sstevel@tonic-gate #define	MNTTYPE_TMPFS	"tmpfs"		/* Tmp volatile file system */
567c478bd9Sstevel@tonic-gate #define	MNTTYPE_AUTOFS	"autofs"	/* Automounter ``file'' system */
577c478bd9Sstevel@tonic-gate #define	MNTTYPE_MNTFS	"mntfs"		/* In-kernel mnttab */
58facf4a8dSllai #define	MNTTYPE_DEV	"dev"		/* /dev file system */
597c478bd9Sstevel@tonic-gate #define	MNTTYPE_CTFS	"ctfs"		/* Contract file system */
607c478bd9Sstevel@tonic-gate #define	MNTTYPE_OBJFS	"objfs"		/* Kernel object file system */
61a237e38eSth #define	MNTTYPE_SHAREFS	"sharefs"	/* Kernel sharetab file system */
62a237e38eSth 
637c478bd9Sstevel@tonic-gate 
647c478bd9Sstevel@tonic-gate #define	MNTOPT_RO	"ro"		/* Read only */
657c478bd9Sstevel@tonic-gate #define	MNTOPT_RW	"rw"		/* Read/write */
667c478bd9Sstevel@tonic-gate #define	MNTOPT_RQ	"rq"		/* Read/write with quotas */
677c478bd9Sstevel@tonic-gate #define	MNTOPT_QUOTA	"quota"		/* Check quotas */
687c478bd9Sstevel@tonic-gate #define	MNTOPT_NOQUOTA	"noquota"	/* Don't check quotas */
697c478bd9Sstevel@tonic-gate #define	MNTOPT_ONERROR	"onerror"	/* action to taken on error */
707c478bd9Sstevel@tonic-gate #define	MNTOPT_SOFT	"soft"		/* Soft mount */
717c478bd9Sstevel@tonic-gate #define	MNTOPT_SEMISOFT	"semisoft"	/* partial soft, uncommited interface */
727c478bd9Sstevel@tonic-gate #define	MNTOPT_HARD	"hard"		/* Hard mount */
737c478bd9Sstevel@tonic-gate #define	MNTOPT_SUID	"suid"		/* Both setuid and devices allowed */
747c478bd9Sstevel@tonic-gate #define	MNTOPT_NOSUID	"nosuid"	/* Neither setuid nor devices allowed */
757c478bd9Sstevel@tonic-gate #define	MNTOPT_DEVICES	"devices"	/* Device-special allowed */
767c478bd9Sstevel@tonic-gate #define	MNTOPT_NODEVICES	"nodevices"	/* Device-special disallowed */
777c478bd9Sstevel@tonic-gate #define	MNTOPT_SETUID	"setuid"	/* Set uid allowed */
787c478bd9Sstevel@tonic-gate #define	MNTOPT_NOSETUID	"nosetuid"	/* Set uid not allowed */
797c478bd9Sstevel@tonic-gate #define	MNTOPT_GRPID	"grpid"		/* SysV-compatible gid on create */
807c478bd9Sstevel@tonic-gate #define	MNTOPT_REMOUNT	"remount"	/* Change mount options */
817c478bd9Sstevel@tonic-gate #define	MNTOPT_NOSUB	"nosub"		/* Disallow mounts on subdirs */
827c478bd9Sstevel@tonic-gate #define	MNTOPT_MULTI	"multi"		/* Do multi-component lookup */
837c478bd9Sstevel@tonic-gate #define	MNTOPT_INTR	"intr"		/* Allow NFS ops to be interrupted */
847c478bd9Sstevel@tonic-gate #define	MNTOPT_NOINTR	"nointr"	/* Don't allow interrupted ops */
857c478bd9Sstevel@tonic-gate #define	MNTOPT_PORT	"port"		/* NFS server IP port number */
867c478bd9Sstevel@tonic-gate #define	MNTOPT_SECURE	"secure"	/* Secure (AUTH_DES) mounting */
877c478bd9Sstevel@tonic-gate #define	MNTOPT_RSIZE	"rsize"		/* Max NFS read size (bytes) */
887c478bd9Sstevel@tonic-gate #define	MNTOPT_WSIZE	"wsize"		/* Max NFS write size (bytes) */
897c478bd9Sstevel@tonic-gate #define	MNTOPT_TIMEO	"timeo"		/* NFS timeout (1/10 sec) */
907c478bd9Sstevel@tonic-gate #define	MNTOPT_RETRANS	"retrans"	/* Max retransmissions (soft mnts) */
917c478bd9Sstevel@tonic-gate #define	MNTOPT_ACTIMEO	"actimeo"	/* Attr cache timeout (sec) */
927c478bd9Sstevel@tonic-gate #define	MNTOPT_ACREGMIN	"acregmin"	/* Min attr cache timeout (files) */
937c478bd9Sstevel@tonic-gate #define	MNTOPT_ACREGMAX	"acregmax"	/* Max attr cache timeout (files) */
947c478bd9Sstevel@tonic-gate #define	MNTOPT_ACDIRMIN	"acdirmin"	/* Min attr cache timeout (dirs) */
957c478bd9Sstevel@tonic-gate #define	MNTOPT_ACDIRMAX	"acdirmax"	/* Max attr cache timeout (dirs) */
967c478bd9Sstevel@tonic-gate #define	MNTOPT_NOAC	"noac"		/* Don't cache attributes at all */
977c478bd9Sstevel@tonic-gate #define	MNTOPT_NOCTO	"nocto"		/* No close-to-open consistency */
987c478bd9Sstevel@tonic-gate #define	MNTOPT_BG	"bg"		/* Do mount retries in background */
997c478bd9Sstevel@tonic-gate #define	MNTOPT_FG	"fg"		/* Do mount retries in foreground */
1007c478bd9Sstevel@tonic-gate #define	MNTOPT_RETRY	"retry"		/* Number of mount retries */
1017c478bd9Sstevel@tonic-gate #define	MNTOPT_DEV	"dev"		/* Device id of mounted fs */
1027c478bd9Sstevel@tonic-gate #define	MNTOPT_POSIX	"posix"		/* Get static pathconf for mount */
1037c478bd9Sstevel@tonic-gate #define	MNTOPT_MAP	"map"		/* Automount map */
1047c478bd9Sstevel@tonic-gate #define	MNTOPT_DIRECT	"direct"	/* Automount   direct map mount */
1057c478bd9Sstevel@tonic-gate #define	MNTOPT_INDIRECT	"indirect"	/* Automount indirect map mount */
1067c478bd9Sstevel@tonic-gate #define	MNTOPT_LLOCK	"llock"		/* Local locking (no lock manager) */
1077c478bd9Sstevel@tonic-gate #define	MNTOPT_IGNORE	"ignore"	/* Ignore this entry */
1087c478bd9Sstevel@tonic-gate #define	MNTOPT_VERS	"vers"		/* protocol version number indicator */
1097c478bd9Sstevel@tonic-gate #define	MNTOPT_PROTO	"proto"		/* protocol network_id indicator */
1107c478bd9Sstevel@tonic-gate #define	MNTOPT_SEC	"sec"		/* Security flavor indicator */
1117c478bd9Sstevel@tonic-gate #define	MNTOPT_SYNCDIR	"syncdir"	/* Synchronous local directory ops */
1127c478bd9Sstevel@tonic-gate #define	MNTOPT_NOSETSEC	"nosec"		/* Do no allow setting sec attrs */
1137c478bd9Sstevel@tonic-gate #define	MNTOPT_NOPRINT	"noprint"	/* Do not print messages */
1147c478bd9Sstevel@tonic-gate #define	MNTOPT_LARGEFILES "largefiles"	/* allow large files */
1157c478bd9Sstevel@tonic-gate #define	MNTOPT_NOLARGEFILES "nolargefiles" /* don't allow large files */
1167c478bd9Sstevel@tonic-gate #define	MNTOPT_FORCEDIRECTIO "forcedirectio" /* Force DirectIO on all files */
1177c478bd9Sstevel@tonic-gate #define	MNTOPT_NOFORCEDIRECTIO "noforcedirectio" /* No Force DirectIO */
1187c478bd9Sstevel@tonic-gate #define	MNTOPT_DISABLEDIRECTIO "disabledirectio" /* Disable DirectIO ioctls */
1197c478bd9Sstevel@tonic-gate #define	MNTOPT_PUBLIC	"public"	/* Use NFS public file handlee */
1207c478bd9Sstevel@tonic-gate #define	MNTOPT_LOGGING "logging" 	/* enable logging */
1217c478bd9Sstevel@tonic-gate #define	MNTOPT_NOLOGGING "nologging" 	/* disable logging */
122fa9e4066Sahrens #define	MNTOPT_ATIME	"atime"		/* update atime for files */
123fa9e4066Sahrens #define	MNTOPT_NOATIME  "noatime"	/* do not update atime for files */
1247c478bd9Sstevel@tonic-gate #define	MNTOPT_GLOBAL	"global"	/* Cluster-wide global mount */
1257c478bd9Sstevel@tonic-gate #define	MNTOPT_NOGLOBAL	"noglobal"	/* Mount local to single node */
1267c478bd9Sstevel@tonic-gate #define	MNTOPT_DFRATIME	"dfratime"	/* Deferred access time updates */
1277c478bd9Sstevel@tonic-gate #define	MNTOPT_NODFRATIME "nodfratime"	/* No Deferred access time updates */
1287c478bd9Sstevel@tonic-gate #define	MNTOPT_NBMAND	"nbmand"	/* allow non-blocking mandatory locks */
1297c478bd9Sstevel@tonic-gate #define	MNTOPT_NONBMAND	"nonbmand"	/* deny non-blocking mandatory locks */
1307c478bd9Sstevel@tonic-gate #define	MNTOPT_XATTR	"xattr"		/* enable extended attributes */
1317c478bd9Sstevel@tonic-gate #define	MNTOPT_NOXATTR	"noxattr"	/* disable extended attributes */
1327c478bd9Sstevel@tonic-gate #define	MNTOPT_EXEC	"exec"		/* enable executables */
1337c478bd9Sstevel@tonic-gate #define	MNTOPT_NOEXEC	"noexec"	/* disable executables */
1347c478bd9Sstevel@tonic-gate #define	MNTOPT_RESTRICT	"restrict"	/* restricted autofs mount */
1357c478bd9Sstevel@tonic-gate #define	MNTOPT_BROWSE	"browse"	/* browsable autofs mount */
1367c478bd9Sstevel@tonic-gate #define	MNTOPT_NOBROWSE	"nobrowse"	/* non-browsable autofs mount */
1377c478bd9Sstevel@tonic-gate 
1387c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
1397c478bd9Sstevel@tonic-gate }
1407c478bd9Sstevel@tonic-gate #endif
1417c478bd9Sstevel@tonic-gate 
1427c478bd9Sstevel@tonic-gate #endif	/* _SYS_MNTENT_H */
143