Home | History | Annotate | Line # | Download | only in sys
      1 /*	$NetBSD: mntent.h,v 1.3 2018/05/28 21:05:10 chs Exp $	*/
      2 
      3 /*
      4  * CDDL HEADER START
      5  *
      6  * The contents of this file are subject to the terms of the
      7  * Common Development and Distribution License, Version 1.0 only
      8  * (the "License").  You may not use this file except in compliance
      9  * with the License.
     10  *
     11  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     12  * or http://www.opensolaris.org/os/licensing.
     13  * See the License for the specific language governing permissions
     14  * and limitations under the License.
     15  *
     16  * When distributing Covered Code, include this CDDL HEADER in each
     17  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     18  * If applicable, add the following below this CDDL HEADER, with the
     19  * fields enclosed by brackets "[]" replaced with your own identifying
     20  * information: Portions Copyright [yyyy] [name of copyright owner]
     21  *
     22  * CDDL HEADER END
     23  *
     24  * $FreeBSD: head/sys/cddl/compat/opensolaris/sys/mntent.h 185029 2008-11-17 20:49:29Z pjd $
     25  */
     26 /*
     27  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
     28  * Use is subject to license terms.
     29  *
     30  *	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
     31  *		All Rights Reserved
     32  */
     33 
     34 #ifndef	_OPENSOLARIS_SYS_MNTENT_H_
     35 #define	_OPENSOLARIS_SYS_MNTENT_H_
     36 
     37 #include <sys/param.h>
     38 #include_next <sys/mount.h>
     39 
     40 #define	MNTMAXSTR	128
     41 
     42 #define	MNTTYPE_ZFS	"zfs"		/* ZFS file system */
     43 
     44 #define	MNTOPT_RO	"ro"		/* Read only */
     45 #define	MNTOPT_RW	"rw"		/* Read/write */
     46 #define	MNTOPT_NOSUID	"nosuid"	/* Neither setuid nor devices allowed */
     47 #define	MNTOPT_DEVICES	"devices"	/* Device-special allowed */
     48 #define	MNTOPT_NODEVICES	"nodevices"	/* Device-special disallowed */
     49 #define	MNTOPT_SETUID	"setuid"	/* Set uid allowed */
     50 #define	MNTOPT_NOSETUID	"nosetuid"	/* Set uid not allowed */
     51 #define	MNTOPT_REMOUNT	"remount"	/* Change mount options */
     52 #define	MNTOPT_ATIME	"atime"		/* update atime for files */
     53 #define	MNTOPT_NOATIME  "noatime"	/* do not update atime for files */
     54 #define	MNTOPT_XATTR	"xattr"		/* enable extended attributes */
     55 #define	MNTOPT_NOXATTR	"noxattr"	/* disable extended attributes */
     56 #define	MNTOPT_EXEC	"exec"		/* enable executables */
     57 #define	MNTOPT_NOEXEC	"noexec"	/* disable executables */
     58 #define	MNTOPT_RESTRICT	"restrict"	/* restricted autofs mount */
     59 #define	MNTOPT_NBMAND	"nbmand"	/* allow non-blocking mandatory locks */
     60 #define	MNTOPT_NONBMAND	"nonbmand"	/* deny non-blocking mandatory locks */
     61 
     62 #endif	/* !_OPENSOLARIS_MNTENT_H_ */
     63