Go to the documentation of this file.
13 #ifndef _LINUX_HFSPLUS_RAW_H
14 #define _LINUX_HFSPLUS_RAW_H
16 #include <linux/types.h>
19 #define HFSPLUS_SECTOR_SIZE 512
20 #define HFSPLUS_SECTOR_SHIFT 9
21 #define HFSPLUS_VOLHEAD_SECTOR 2
22 #define HFSPLUS_VOLHEAD_SIG 0x482b
23 #define HFSPLUS_VOLHEAD_SIGX 0x4858
24 #define HFSPLUS_SUPER_MAGIC 0x482b
25 #define HFSPLUS_MIN_VERSION 4
26 #define HFSPLUS_CURRENT_VERSION 5
28 #define HFSP_WRAP_MAGIC 0x4244
29 #define HFSP_WRAP_ATTRIB_SLOCK 0x8000
30 #define HFSP_WRAP_ATTRIB_SPARED 0x0200
32 #define HFSP_WRAPOFF_SIG 0x00
33 #define HFSP_WRAPOFF_ATTRIB 0x0A
34 #define HFSP_WRAPOFF_ABLKSIZE 0x14
35 #define HFSP_WRAPOFF_ABLKSTART 0x1C
36 #define HFSP_WRAPOFF_EMBEDSIG 0x7C
37 #define HFSP_WRAPOFF_EMBEDEXT 0x7E
39 #define HFSP_HIDDENDIR_NAME \
40 "\xe2\x90\x80\xe2\x90\x80\xe2\x90\x80\xe2\x90\x80HFS+ Private Data"
42 #define HFSP_HARDLINK_TYPE 0x686c6e6b
43 #define HFSP_HFSPLUS_CREATOR 0x6866732b
45 #define HFSP_SYMLINK_TYPE 0x736c6e6b
46 #define HFSP_SYMLINK_CREATOR 0x72686170
48 #define HFSP_MOUNT_VERSION 0x482b4c78
61 #define HFSPLUS_MAX_STRLEN 255
73 #define HFSPLUS_FLG_NODUMP 0x01
74 #define HFSPLUS_FLG_IMMUTABLE 0x02
75 #define HFSPLUS_FLG_APPEND 0x04
130 #define HFSPLUS_VOL_UNMNT (1 << 8)
131 #define HFSPLUS_VOL_SPARE_BLK (1 << 9)
132 #define HFSPLUS_VOL_NOCACHE (1 << 10)
133 #define HFSPLUS_VOL_INCNSTNT (1 << 11)
134 #define HFSPLUS_VOL_NODEID_REUSED (1 << 12)
135 #define HFSPLUS_VOL_JOURNALED (1 << 13)
136 #define HFSPLUS_VOL_SOFTLOCK (1 << 15)
149 #define HFS_NODE_INDEX 0x00
150 #define HFS_NODE_HEADER 0x01
151 #define HFS_NODE_MAP 0x02
152 #define HFS_NODE_LEAF 0xFF
174 #define HFS_TREE_BIGKEYS 2
175 #define HFS_TREE_VARIDXKEYS 4
178 #define HFSPLUS_TREE_HEAD 0
179 #define HFSPLUS_NODE_MXSZ 32768
182 #define HFSPLUS_POR_CNID 1
183 #define HFSPLUS_ROOT_CNID 2
184 #define HFSPLUS_EXT_CNID 3
185 #define HFSPLUS_CAT_CNID 4
186 #define HFSPLUS_BAD_CNID 5
187 #define HFSPLUS_ALLOC_CNID 6
188 #define HFSPLUS_START_CNID 7
189 #define HFSPLUS_ATTR_CNID 8
190 #define HFSPLUS_EXCH_CNID 15
191 #define HFSPLUS_FIRSTUSER_CNID 16
194 #define HFSPLUS_KEY_CASEFOLDING 0xCF
195 #define HFSPLUS_KEY_BINARY 0xBC
204 #define HFSPLUS_CAT_KEYLEN (sizeof(struct hfsplus_cat_key))
292 #define HFSPLUS_FILE_LOCKED 0x0001
293 #define HFSPLUS_FILE_THREAD_EXISTS 0x0002
303 #define HFSPLUS_MIN_THREAD_SZ 10
314 #define HFSPLUS_FOLDER 0x0001
315 #define HFSPLUS_FILE 0x0002
316 #define HFSPLUS_FOLDER_THREAD 0x0003
317 #define HFSPLUS_FILE_THREAD 0x0004
328 #define HFSPLUS_EXT_KEYLEN sizeof(struct hfsplus_ext_key)