xref: /illumos-gate/usr/src/uts/common/sys/fs/ufs_mount.h (revision 2d6eb4a5)
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, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1991, 1996-1999 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 #ifndef _SYS_FS_UFS_MOUNT_H
28 #define	_SYS_FS_UFS_MOUNT_H
29 
30 #ifdef	__cplusplus
31 extern "C" {
32 #endif
33 
34 #include <sys/isa_defs.h>
35 
36 struct ufs_args {
37 	int	flags;
38 };
39 
40 /*
41  * UFS mount option flags
42  */
43 #define	UFSMNT_NOINTR	0x00000001	/* disallow interrupts on lockfs */
44 #define	UFSMNT_SYNCDIR	0x00000002	/* synchronous local directory ops */
45 #define	UFSMNT_NOSETSEC	0x00000004	/* disallow use of ufs_setsecattr */
46 #define	UFSMNT_LARGEFILES 0x00000008	/* allow large files */
47 #define	UFSMNT_NOATIME  0x00001000	/* disable updates of i_atime */
48 /* deferred inode time */
49 #define	UFSMNT_NODFRATIME	0x00002000	/* no deferred access time */
50 /* action to take when internal inconsistency is detected */
51 #define	UFSMNT_ONERROR_PANIC	0x00000020	/* forced system shutdown */
52 #define	UFSMNT_ONERROR_LOCK	0x00000040	/* error lock the fs */
53 #define	UFSMNT_ONERROR_UMOUNT	0x00000080	/* forced umount of the fs */
54 #define	UFSMNT_ONERROR_FLGMASK	0x000000E0
55 /* default action is to repair fs */
56 #define	UFSMNT_ONERROR_DEFAULT		UFSMNT_ONERROR_PANIC
57 #define	UFSMNT_DISABLEDIRECTIO	0x00000100	/* disable directio ioctls */
58 /* Force DirectIO */
59 #define	UFSMNT_FORCEDIRECTIO	0x00000200	/* directio for all files */
60 #define	UFSMNT_NOFORCEDIRECTIO	0x00000400	/* no directio for all files */
61 /* logging */
62 #define	UFSMNT_LOGGING		0x00000800	/* enable logging */
63 
64 #define	UFSMNT_ONERROR_PANIC_STR	"panic"
65 #define	UFSMNT_ONERROR_LOCK_STR		"lock"
66 #define	UFSMNT_ONERROR_UMOUNT_STR	"umount"
67 
68 #ifdef	__cplusplus
69 }
70 #endif
71 
72 #endif	/* _SYS_FS_UFS_MOUNT_H */
73