]> git.proxmox.com Git - mirror_zfs-debian.git/blame - include/sys/mntent.h
Imported Upstream version 0.6.5.9
[mirror_zfs-debian.git] / include / sys / mntent.h
CommitLineData
a26baf28
BB
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 *
25 * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
26 * All Rights Reserved
27 */
28
29#ifndef _SYS_MNTENT_H
30#define _SYS_MNTENT_H
31
3fb1fcde 32#define MNTTYPE_ZFS "zfs" /* ZFS file system */
a26baf28 33
3fb1fcde
BB
34#define MOUNT_SUCCESS 0x00 /* Success */
35#define MOUNT_USAGE 0x01 /* Invalid invocation or permissions */
36#define MOUNT_SYSERR 0x02 /* System error (ENOMEM, etc) */
37#define MOUNT_SOFTWARE 0x04 /* Internal mount bug */
38#define MOUNT_USER 0x08 /* Interrupted by user (EINTR) */
39#define MOUNT_FILEIO 0x10 /* Error updating/locking /etc/mtab */
40#define MOUNT_FAIL 0x20 /* Mount failed */
41#define MOUNT_SOMEOK 0x40 /* At least on mount succeeded */
a08ee875 42#define MOUNT_BUSY 0x80 /* Mount failed due to EBUSY */
a26baf28 43
3fb1fcde 44#define MNTOPT_ASYNC "async" /* all I/O is asynchronous */
a26baf28 45#define MNTOPT_ATIME "atime" /* update atime for files */
3fb1fcde
BB
46#define MNTOPT_NOATIME "noatime" /* do not update atime for files */
47#define MNTOPT_AUTO "auto" /* automount */
48#define MNTOPT_NOAUTO "noauto" /* do not automount */
49#define MNTOPT_CONTEXT "context" /* selinux context */
50#define MNTOPT_FSCONTEXT "fscontext" /* selinux fscontext */
51#define MNTOPT_DEFCONTEXT "defcontext" /* selinux defcontext */
52#define MNTOPT_ROOTCONTEXT "rootcontext" /* selinux rootcontext */
53#define MNTOPT_DEFAULTS "defaults" /* defaults */
54#define MNTOPT_DEVICES "dev" /* device-special allowed */
55#define MNTOPT_NODEVICES "nodev" /* device-special disallowed */
56#define MNTOPT_DIRATIME "diratime" /* update atime for dirs */
57#define MNTOPT_NODIRATIME "nodiratime" /* do not update atime for dirs */
58#define MNTOPT_DIRSYNC "dirsync" /* do dir updates synchronously */
a26baf28
BB
59#define MNTOPT_EXEC "exec" /* enable executables */
60#define MNTOPT_NOEXEC "noexec" /* disable executables */
3fb1fcde
BB
61#define MNTOPT_GROUP "group" /* allow group mount */
62#define MNTOPT_NOGROUP "nogroup" /* do not allow group mount */
63#define MNTOPT_IVERSION "iversion" /* update inode version */
64#define MNTOPT_NOIVERSION "noiversion" /* do not update inode version */
65#define MNTOPT_NBMAND "mand" /* allow non-blocking mandatory locks */
66#define MNTOPT_NONBMAND "nomand" /* deny non-blocking mandatory locks */
67#define MNTOPT_NETDEV "_netdev" /* network device */
68#define MNTOPT_NOFAIL "nofail" /* no failure */
69#define MNTOPT_RELATIME "relatime" /* allow relative time updates */
70#define MNTOPT_NORELATIME "norelatime" /* do not allow relative time updates */
68d83c55
AX
71#define MNTOPT_STRICTATIME "strictatime" /* strict access time updates */
72#define MNTOPT_NOSTRICTATIME "nostrictatime" /* No strict access time updates */
73#define MNTOPT_LAZYTIME "lazytime" /* Defer access time writing */
3fb1fcde
BB
74#define MNTOPT_SETUID "suid" /* Both setuid and devices allowed */
75#define MNTOPT_NOSETUID "nosuid" /* Neither setuid nor devices allowed */
76#define MNTOPT_OWNER "owner" /* allow owner mount */
77#define MNTOPT_NOOWNER "noowner" /* do not allow owner mount */
78#define MNTOPT_REMOUNT "remount" /* change mount options */
79#define MNTOPT_RO "ro" /* read only */
80#define MNTOPT_RW "rw" /* read/write */
81#define MNTOPT_SYNC "sync" /* all I/O is synchronous */
82#define MNTOPT_USER "user" /* allow user mount */
83#define MNTOPT_NOUSER "nouser" /* do not allow user mount */
84#define MNTOPT_USERS "users" /* allow user mount */
85#define MNTOPT_NOUSERS "nousers" /* do not allow user mount */
86#define MNTOPT_SUB "sub" /* allow mounts on subdirs */
87#define MNTOPT_NOSUB "nosub" /* do not allow mounts on subdirs */
88#define MNTOPT_QUIET "quiet" /* quiet mount */
89#define MNTOPT_LOUD "loud" /* verbose mount */
90#define MNTOPT_BIND "bind" /* remount part of a tree */
91#define MNTOPT_RBIND "rbind" /* include subtrees */
e10b0808
AX
92#define MNTOPT_DIRXATTR "dirxattr" /* enable directory xattrs */
93#define MNTOPT_SAXATTR "saxattr" /* enable system-attribute xattrs */
2cf7f52b
BB
94#define MNTOPT_XATTR "xattr" /* enable extended attributes */
95#define MNTOPT_NOXATTR "noxattr" /* disable extended attributes */
3fb1fcde 96#define MNTOPT_COMMENT "comment" /* comment */
3fb1fcde 97#define MNTOPT_ZFSUTIL "zfsutil" /* called by zfs utility */
a08ee875
LG
98#define MNTOPT_ACL "acl" /* passed by util-linux-2.24 mount */
99#define MNTOPT_NOACL "noacl" /* likewise */
100#define MNTOPT_POSIXACL "posixacl" /* likewise */
e10b0808 101#define MNTOPT_MNTPOINT "mntpoint" /* mount point hint */
d53368f6 102
a26baf28 103#endif /* _SYS_MNTENT_H */