xref: /titanic_44/usr/src/uts/common/sys/fs/ufs_mount.h (revision 55553f719b521a0bb4deab6efc944cd30c1a56aa)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 #include <sys/isa_defs.h>
37 
38 struct ufs_args {
39 	int	flags;
40 };
41 
42 /*
43  * UFS mount option flags
44  */
45 #define	UFSMNT_NOINTR	0x00000001	/* disallow interrupts on lockfs */
46 #define	UFSMNT_SYNCDIR	0x00000002	/* synchronous local directory ops */
47 #define	UFSMNT_NOSETSEC	0x00000004	/* disallow use of ufs_setsecattr */
48 #define	UFSMNT_LARGEFILES 0x00000008	/* allow large files */
49 #define	UFSMNT_NOATIME  0x00001000	/* disable updates of i_atime */
50 /* deferred inode time */
51 #define	UFSMNT_NODFRATIME	0x00002000	/* no deferred access time */
52 /* action to take when internal inconsistency is detected */
53 #define	UFSMNT_ONERROR_PANIC	0x00000020	/* forced system shutdown */
54 #define	UFSMNT_ONERROR_LOCK	0x00000040	/* error lock the fs */
55 #define	UFSMNT_ONERROR_UMOUNT	0x00000080	/* forced umount of the fs */
56 #define	UFSMNT_ONERROR_FLGMASK	0x000000E0
57 /* default action is to repair fs */
58 #define	UFSMNT_ONERROR_DEFAULT		UFSMNT_ONERROR_PANIC
59 #define	UFSMNT_DISABLEDIRECTIO	0x00000100	/* disable directio ioctls */
60 /* Force DirectIO */
61 #define	UFSMNT_FORCEDIRECTIO	0x00000200	/* directio for all files */
62 #define	UFSMNT_NOFORCEDIRECTIO	0x00000400	/* no directio for all files */
63 /* logging */
64 #define	UFSMNT_LOGGING		0x00000800	/* enable logging */
65 
66 #define	UFSMNT_ONERROR_PANIC_STR	"panic"
67 #define	UFSMNT_ONERROR_LOCK_STR		"lock"
68 #define	UFSMNT_ONERROR_UMOUNT_STR	"umount"
69 
70 #ifdef	__cplusplus
71 }
72 #endif
73 
74 #endif	/* _SYS_FS_UFS_MOUNT_H */
75