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
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.
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]
23 * Copyright (c) 1991, 1996-1999 by Sun Microsystems, Inc.
24 * All rights reserved.
27 #ifndef _SYS_FS_UFS_MOUNT_H
28 #define _SYS_FS_UFS_MOUNT_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
36 #include <sys/isa_defs.h>
43 * UFS mount option flags
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 */
61 #define UFSMNT_FORCEDIRECTIO 0x00000200 /* directio for all files */
62 #define UFSMNT_NOFORCEDIRECTIO 0x00000400 /* no directio for all files */
64 #define UFSMNT_LOGGING 0x00000800 /* enable logging */
66 #define UFSMNT_ONERROR_PANIC_STR "panic"
67 #define UFSMNT_ONERROR_LOCK_STR "lock"
68 #define UFSMNT_ONERROR_UMOUNT_STR "umount"
74 #endif /* _SYS_FS_UFS_MOUNT_H */