Go to the documentation of this file.
14 #define HFS_PMAP_BLK 1
18 #define HFS_DRVR_DESC_MAGIC 0x4552
19 #define HFS_OLD_PMAP_MAGIC 0x5453
20 #define HFS_NEW_PMAP_MAGIC 0x504D
21 #define HFS_SUPER_MAGIC 0x4244
22 #define HFS_MFS_SUPER_MAGIC 0xD2D7
25 #define HFS_SECTOR_SIZE 512
26 #define HFS_SECTOR_SIZE_BITS 9
27 #define HFS_NAMELEN 31
28 #define HFS_MAX_NAMELEN 128
29 #define HFS_MAX_VALENCE 32767U
34 #define HFS_SB_ATTRIB_HLOCK (1 << 7)
35 #define HFS_SB_ATTRIB_UNMNT (1 << 8)
36 #define HFS_SB_ATTRIB_SPARED (1 << 9)
37 #define HFS_SB_ATTRIB_INCNSTNT (1 << 11)
38 #define HFS_SB_ATTRIB_SLOCK (1 << 15)
41 #define HFS_POR_CNID 1
42 #define HFS_ROOT_CNID 2
43 #define HFS_EXT_CNID 3
44 #define HFS_CAT_CNID 4
45 #define HFS_BAD_CNID 5
46 #define HFS_ALLOC_CNID 6
47 #define HFS_START_CNID 7
48 #define HFS_ATTR_CNID 8
49 #define HFS_EXCH_CNID 15
50 #define HFS_FIRSTUSER_CNID 16
53 #define HFS_CDR_DIR 0x01
54 #define HFS_CDR_FIL 0x02
55 #define HFS_CDR_THD 0x03
56 #define HFS_CDR_FTH 0x04
59 #define HFS_FK_DATA 0x00
60 #define HFS_FK_RSRC 0xFF
63 #define HFS_FIL_LOCK 0x01
64 #define HFS_FIL_THD 0x02
65 #define HFS_FIL_DOPEN 0x04
66 #define HFS_FIL_ROPEN 0x08
67 #define HFS_FIL_DIR 0x10
68 #define HFS_FIL_NOCOPY 0x40
69 #define HFS_FIL_USED 0x80
72 #define HFS_DIR_LOCK 0x01
73 #define HFS_DIR_THD 0x02
74 #define HFS_DIR_INEXPFOLDER 0x04
75 #define HFS_DIR_MOUNTED 0x08
76 #define HFS_DIR_DIR 0x10
77 #define HFS_DIR_EXPFOLDER 0x20
80 #define HFS_FLG_INITED 0x0100
81 #define HFS_FLG_LOCKED 0x1000
82 #define HFS_FLG_INVISIBLE 0x4000
146 #define HFS_BKEY(X) (((void)((X)->KeyLen)), ((struct hfs_bkey *)(X)))
170 #define HFS_MAX_CAT_KEYLEN (sizeof(struct hfs_cat_key) - sizeof(u8))
171 #define HFS_MAX_EXT_KEYLEN (sizeof(struct hfs_ext_key) - sizeof(u8))