17c478bdstevel@tonic-gate/*
27c478bdstevel@tonic-gate * CDDL HEADER START
37c478bdstevel@tonic-gate *
47c478bdstevel@tonic-gate * The contents of this file are subject to the terms of the
5facf4a8llai * Common Development and Distribution License (the "License").
6facf4a8llai * You may not use this file except in compliance with the License.
77c478bdstevel@tonic-gate *
87c478bdstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bdstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
107c478bdstevel@tonic-gate * See the License for the specific language governing permissions
117c478bdstevel@tonic-gate * and limitations under the License.
127c478bdstevel@tonic-gate *
137c478bdstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
147c478bdstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bdstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
167c478bdstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
177c478bdstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bdstevel@tonic-gate *
197c478bdstevel@tonic-gate * CDDL HEADER END
207c478bdstevel@tonic-gate */
217c478bdstevel@tonic-gate/*
224bff34ethurlow * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bdstevel@tonic-gate * Use is subject to license terms.
24bd93c05Alexander Eremin * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
257c478bdstevel@tonic-gate *
267c478bdstevel@tonic-gate *	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
277c478bdstevel@tonic-gate *		All Rights Reserved
287c478bdstevel@tonic-gate */
297c478bdstevel@tonic-gate
307c478bdstevel@tonic-gate#ifndef _SYS_MNTENT_H
317c478bdstevel@tonic-gate#define	_SYS_MNTENT_H
327c478bdstevel@tonic-gate
337c478bdstevel@tonic-gate#ifdef	__cplusplus
347c478bdstevel@tonic-gateextern "C" {
357c478bdstevel@tonic-gate#endif
367c478bdstevel@tonic-gate
377c478bdstevel@tonic-gate#define	MNTTAB		"/etc/mnttab"
387c478bdstevel@tonic-gate#define	VFSTAB		"/etc/vfstab"
397c478bdstevel@tonic-gate#define	MNTMAXSTR	128
407c478bdstevel@tonic-gate
41fa9e406ahrens#define	MNTTYPE_ZFS	"zfs"		/* ZFS file system */
427c478bdstevel@tonic-gate#define	MNTTYPE_UFS	"ufs"		/* Unix file system */
434bff34ethurlow#define	MNTTYPE_SMBFS	"smbfs"		/* SMBFS file system */
447c478bdstevel@tonic-gate#define	MNTTYPE_NFS	"nfs"		/* NFS file system */
457c478bdstevel@tonic-gate#define	MNTTYPE_NFS3	"nfs3"		/* NFS Version 3 file system */
467c478bdstevel@tonic-gate#define	MNTTYPE_NFS4	"nfs4"		/* NFS Version 4 file system */
477c478bdstevel@tonic-gate#define	MNTTYPE_PCFS	"pcfs"		/* PC (MSDOS) file system */
487c478bdstevel@tonic-gate#define	MNTTYPE_PC	MNTTYPE_PCFS	/* Deprecated name; use MNTTYPE_PCFS */
497c478bdstevel@tonic-gate#define	MNTTYPE_LOFS	"lofs"		/* Loop back file system */
507c478bdstevel@tonic-gate#define	MNTTYPE_LO	MNTTYPE_LOFS	/* Deprecated name; use MNTTYPE_LOFS */
517c478bdstevel@tonic-gate#define	MNTTYPE_HSFS	"hsfs"		/* High Sierra (9660) file system */
527c478bdstevel@tonic-gate#define	MNTTYPE_SWAP	"swap"		/* Swap file system */
537c478bdstevel@tonic-gate#define	MNTTYPE_TMPFS	"tmpfs"		/* Tmp volatile file system */
547c478bdstevel@tonic-gate#define	MNTTYPE_AUTOFS	"autofs"	/* Automounter ``file'' system */
557c478bdstevel@tonic-gate#define	MNTTYPE_MNTFS	"mntfs"		/* In-kernel mnttab */
56facf4a8llai#define	MNTTYPE_DEV	"dev"		/* /dev file system */
577c478bdstevel@tonic-gate#define	MNTTYPE_CTFS	"ctfs"		/* Contract file system */
587c478bdstevel@tonic-gate#define	MNTTYPE_OBJFS	"objfs"		/* Kernel object file system */
59a237e38th#define	MNTTYPE_SHAREFS	"sharefs"	/* Kernel sharetab file system */
60a237e38th
617c478bdstevel@tonic-gate
627c478bdstevel@tonic-gate#define	MNTOPT_RO	"ro"		/* Read only */
637c478bdstevel@tonic-gate#define	MNTOPT_RW	"rw"		/* Read/write */
647c478bdstevel@tonic-gate#define	MNTOPT_RQ	"rq"		/* Read/write with quotas */
657c478bdstevel@tonic-gate#define	MNTOPT_QUOTA	"quota"		/* Check quotas */
667c478bdstevel@tonic-gate#define	MNTOPT_NOQUOTA	"noquota"	/* Don't check quotas */
677c478bdstevel@tonic-gate#define	MNTOPT_ONERROR	"onerror"	/* action to taken on error */
687c478bdstevel@tonic-gate#define	MNTOPT_SOFT	"soft"		/* Soft mount */
697c478bdstevel@tonic-gate#define	MNTOPT_SEMISOFT	"semisoft"	/* partial soft, uncommited interface */
707c478bdstevel@tonic-gate#define	MNTOPT_HARD	"hard"		/* Hard mount */
717c478bdstevel@tonic-gate#define	MNTOPT_SUID	"suid"		/* Both setuid and devices allowed */
727c478bdstevel@tonic-gate#define	MNTOPT_NOSUID	"nosuid"	/* Neither setuid nor devices allowed */
737c478bdstevel@tonic-gate#define	MNTOPT_DEVICES	"devices"	/* Device-special allowed */
747c478bdstevel@tonic-gate#define	MNTOPT_NODEVICES	"nodevices"	/* Device-special disallowed */
757c478bdstevel@tonic-gate#define	MNTOPT_SETUID	"setuid"	/* Set uid allowed */
767c478bdstevel@tonic-gate#define	MNTOPT_NOSETUID	"nosetuid"	/* Set uid not allowed */
777c478bdstevel@tonic-gate#define	MNTOPT_GRPID	"grpid"		/* SysV-compatible gid on create */
787c478bdstevel@tonic-gate#define	MNTOPT_REMOUNT	"remount"	/* Change mount options */
797c478bdstevel@tonic-gate#define	MNTOPT_NOSUB	"nosub"		/* Disallow mounts on subdirs */
807c478bdstevel@tonic-gate#define	MNTOPT_MULTI	"multi"		/* Do multi-component lookup */
817c478bdstevel@tonic-gate#define	MNTOPT_INTR	"intr"		/* Allow NFS ops to be interrupted */
827c478bdstevel@tonic-gate#define	MNTOPT_NOINTR	"nointr"	/* Don't allow interrupted ops */
837c478bdstevel@tonic-gate#define	MNTOPT_PORT	"port"		/* NFS server IP port number */
847c478bdstevel@tonic-gate#define	MNTOPT_SECURE	"secure"	/* Secure (AUTH_DES) mounting */
857c478bdstevel@tonic-gate#define	MNTOPT_RSIZE	"rsize"		/* Max NFS read size (bytes) */
867c478bdstevel@tonic-gate#define	MNTOPT_WSIZE	"wsize"		/* Max NFS write size (bytes) */
877c478bdstevel@tonic-gate#define	MNTOPT_TIMEO	"timeo"		/* NFS timeout (1/10 sec) */
887c478bdstevel@tonic-gate#define	MNTOPT_RETRANS	"retrans"	/* Max retransmissions (soft mnts) */
897c478bdstevel@tonic-gate#define	MNTOPT_ACTIMEO	"actimeo"	/* Attr cache timeout (sec) */
907c478bdstevel@tonic-gate#define	MNTOPT_ACREGMIN	"acregmin"	/* Min attr cache timeout (files) */
917c478bdstevel@tonic-gate#define	MNTOPT_ACREGMAX	"acregmax"	/* Max attr cache timeout (files) */
927c478bdstevel@tonic-gate#define	MNTOPT_ACDIRMIN	"acdirmin"	/* Min attr cache timeout (dirs) */
937c478bdstevel@tonic-gate#define	MNTOPT_ACDIRMAX	"acdirmax"	/* Max attr cache timeout (dirs) */
947c478bdstevel@tonic-gate#define	MNTOPT_NOAC	"noac"		/* Don't cache attributes at all */
957c478bdstevel@tonic-gate#define	MNTOPT_NOCTO	"nocto"		/* No close-to-open consistency */
967c478bdstevel@tonic-gate#define	MNTOPT_BG	"bg"		/* Do mount retries in background */
977c478bdstevel@tonic-gate#define	MNTOPT_FG	"fg"		/* Do mount retries in foreground */
987c478bdstevel@tonic-gate#define	MNTOPT_RETRY	"retry"		/* Number of mount retries */
997c478bdstevel@tonic-gate#define	MNTOPT_DEV	"dev"		/* Device id of mounted fs */
1007c478bdstevel@tonic-gate#define	MNTOPT_POSIX	"posix"		/* Get static pathconf for mount */
1017c478bdstevel@tonic-gate#define	MNTOPT_MAP	"map"		/* Automount map */
1027c478bdstevel@tonic-gate#define	MNTOPT_DIRECT	"direct"	/* Automount   direct map mount */
1037c478bdstevel@tonic-gate#define	MNTOPT_INDIRECT	"indirect"	/* Automount indirect map mount */
1047c478bdstevel@tonic-gate#define	MNTOPT_LLOCK	"llock"		/* Local locking (no lock manager) */
1057c478bdstevel@tonic-gate#define	MNTOPT_IGNORE	"ignore"	/* Ignore this entry */
1067c478bdstevel@tonic-gate#define	MNTOPT_VERS	"vers"		/* protocol version number indicator */
1077c478bdstevel@tonic-gate#define	MNTOPT_PROTO	"proto"		/* protocol network_id indicator */
1087c478bdstevel@tonic-gate#define	MNTOPT_SEC	"sec"		/* Security flavor indicator */
1097c478bdstevel@tonic-gate#define	MNTOPT_SYNCDIR	"syncdir"	/* Synchronous local directory ops */
1107c478bdstevel@tonic-gate#define	MNTOPT_NOSETSEC	"nosec"		/* Do no allow setting sec attrs */
1117c478bdstevel@tonic-gate#define	MNTOPT_NOPRINT	"noprint"	/* Do not print messages */
1127c478bdstevel@tonic-gate#define	MNTOPT_LARGEFILES "largefiles"	/* allow large files */
1137c478bdstevel@tonic-gate#define	MNTOPT_NOLARGEFILES "nolargefiles" /* don't allow large files */
1147c478bdstevel@tonic-gate#define	MNTOPT_FORCEDIRECTIO "forcedirectio" /* Force DirectIO on all files */
1157c478bdstevel@tonic-gate#define	MNTOPT_NOFORCEDIRECTIO "noforcedirectio" /* No Force DirectIO */
1167c478bdstevel@tonic-gate#define	MNTOPT_DISABLEDIRECTIO "disabledirectio" /* Disable DirectIO ioctls */
1177c478bdstevel@tonic-gate#define	MNTOPT_PUBLIC	"public"	/* Use NFS public file handlee */
1187c478bdstevel@tonic-gate#define	MNTOPT_LOGGING "logging" 	/* enable logging */
1197c478bdstevel@tonic-gate#define	MNTOPT_NOLOGGING "nologging" 	/* disable logging */
120fa9e406ahrens#define	MNTOPT_ATIME	"atime"		/* update atime for files */
121fa9e406ahrens#define	MNTOPT_NOATIME  "noatime"	/* do not update atime for files */
1227c478bdstevel@tonic-gate#define	MNTOPT_GLOBAL	"global"	/* Cluster-wide global mount */
1237c478bdstevel@tonic-gate#define	MNTOPT_NOGLOBAL	"noglobal"	/* Mount local to single node */
1247c478bdstevel@tonic-gate#define	MNTOPT_DFRATIME	"dfratime"	/* Deferred access time updates */
1257c478bdstevel@tonic-gate#define	MNTOPT_NODFRATIME "nodfratime"	/* No Deferred access time updates */
1267c478bdstevel@tonic-gate#define	MNTOPT_NBMAND	"nbmand"	/* allow non-blocking mandatory locks */
1277c478bdstevel@tonic-gate#define	MNTOPT_NONBMAND	"nonbmand"	/* deny non-blocking mandatory locks */
1287c478bdstevel@tonic-gate#define	MNTOPT_XATTR	"xattr"		/* enable extended attributes */
1297c478bdstevel@tonic-gate#define	MNTOPT_NOXATTR	"noxattr"	/* disable extended attributes */
1307c478bdstevel@tonic-gate#define	MNTOPT_EXEC	"exec"		/* enable executables */
1317c478bdstevel@tonic-gate#define	MNTOPT_NOEXEC	"noexec"	/* disable executables */
1327c478bdstevel@tonic-gate#define	MNTOPT_RESTRICT	"restrict"	/* restricted autofs mount */
1337c478bdstevel@tonic-gate#define	MNTOPT_BROWSE	"browse"	/* browsable autofs mount */
1347c478bdstevel@tonic-gate#define	MNTOPT_NOBROWSE	"nobrowse"	/* non-browsable autofs mount */
135bfa62c2Vallish Vaidyeshwara#define	MNTOPT_ZONE	"zone"	/* zone name - set only for non global zones */
1367c478bdstevel@tonic-gate
1377c478bdstevel@tonic-gate#ifdef	__cplusplus
1387c478bdstevel@tonic-gate}
1397c478bdstevel@tonic-gate#endif
1407c478bdstevel@tonic-gate
1417c478bdstevel@tonic-gate#endif	/* _SYS_MNTENT_H */
142