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