]>
git.saurik.com Git - apple/xnu.git/blob - bsd/hfs/hfs_mount.h
2 * Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
31 * Copyright (c) 1997-2002 Apple Computer, Inc. All Rights Reserved
38 #include <sys/appleapiopts.h>
40 #include <sys/mount.h>
44 * Arguments to mount HFS-based filesystems
47 #define OVERRIDE_UNKNOWN_PERMISSIONS 0
49 #define UNKNOWNUID ((uid_t)99)
50 #define UNKNOWNGID ((gid_t)99)
51 #define UNKNOWNPERMISSIONS (S_IRWXU | S_IROTH | S_IXOTH) /* 705 */
53 #ifdef __APPLE_API_UNSTABLE
54 struct hfs_mount_args
{
56 char *fspec
; /* block special device to mount */
58 uid_t hfs_uid
; /* uid that owns hfs files (standard HFS only) */
59 gid_t hfs_gid
; /* gid that owns hfs files (standard HFS only) */
60 mode_t hfs_mask
; /* mask to be applied for hfs perms (standard HFS only) */
61 uint32_t hfs_encoding
; /* encoding for this volume (standard HFS only) */
62 struct timezone hfs_timezone
; /* user time zone info (standard HFS only) */
63 int flags
; /* mounting flags, see below */
64 int journal_tbuffer_size
; /* size in bytes of the journal transaction buffer */
65 int journal_flags
; /* flags to pass to journal_open/create */
66 int journal_disable
; /* don't use journaling (potentially dangerous) */
69 #define HFSFSMNT_NOXONFILES 0x1 /* disable execute permissions for files */
70 #define HFSFSMNT_WRAPPER 0x2 /* mount HFS wrapper (if it exists) */
71 #define HFSFSMNT_EXTENDED_ARGS 0x4 /* indicates new fields after "flags" are valid */
74 * Sysctl values for HFS
76 #define HFS_ENCODINGBIAS 1 /* encoding matching CJK bias */
77 #define HFS_EXTEND_FS 2
78 #define HFS_ENCODINGHINT 3 /* guess encoding for string */
79 #define HFS_ENABLE_JOURNALING 0x082969
80 #define HFS_DISABLE_JOURNALING 0x031272
81 #define HFS_GET_JOURNAL_INFO 0x6a6e6c69
82 #define HFS_SET_PKG_EXTENSIONS 0x121031
84 #endif /* __APPLE_API_UNSTABLE */
86 #endif /* ! _HFS_MOUNT_H_ */