Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Variables
hfs.h File Reference

Go to the source code of this file.

Data Structures

struct  hfs_name
 
struct  hfs_point
 
struct  hfs_rect
 
struct  hfs_finfo
 
struct  hfs_fxinfo
 
struct  hfs_dinfo
 
struct  hfs_dxinfo
 
union  hfs_finder_info
 
struct  hfs_cat_key
 
struct  hfs_ext_key
 
union  hfs_btree_key
 
struct  hfs_extent
 
struct  hfs_cat_file
 
struct  hfs_cat_dir
 
struct  hfs_cat_thread
 
union  hfs_cat_rec
 
struct  hfs_mdb
 
struct  hfs_readdir_data
 

Macros

#define HFS_DD_BLK   0 /* Driver Descriptor block */
 
#define HFS_PMAP_BLK   1 /* First block of partition map */
 
#define HFS_MDB_BLK   2 /* Block (w/i partition) of MDB */
 
#define HFS_DRVR_DESC_MAGIC   0x4552 /* "ER": driver descriptor map */
 
#define HFS_OLD_PMAP_MAGIC   0x5453 /* "TS": old-type partition map */
 
#define HFS_NEW_PMAP_MAGIC   0x504D /* "PM": new-type partition map */
 
#define HFS_SUPER_MAGIC   0x4244 /* "BD": HFS MDB (super block) */
 
#define HFS_MFS_SUPER_MAGIC   0xD2D7 /* MFS MDB (super block) */
 
#define HFS_SECTOR_SIZE   512 /* size of an HFS sector */
 
#define HFS_SECTOR_SIZE_BITS   9 /* log_2(HFS_SECTOR_SIZE) */
 
#define HFS_NAMELEN   31 /* maximum length of an HFS filename */
 
#define HFS_MAX_NAMELEN   128
 
#define HFS_MAX_VALENCE   32767U
 
#define HFS_SB_ATTRIB_HLOCK   (1 << 7)
 
#define HFS_SB_ATTRIB_UNMNT   (1 << 8)
 
#define HFS_SB_ATTRIB_SPARED   (1 << 9)
 
#define HFS_SB_ATTRIB_INCNSTNT   (1 << 11)
 
#define HFS_SB_ATTRIB_SLOCK   (1 << 15)
 
#define HFS_POR_CNID   1 /* Parent Of the Root */
 
#define HFS_ROOT_CNID   2 /* ROOT directory */
 
#define HFS_EXT_CNID   3 /* EXTents B-tree */
 
#define HFS_CAT_CNID   4 /* CATalog B-tree */
 
#define HFS_BAD_CNID   5 /* BAD blocks file */
 
#define HFS_ALLOC_CNID   6 /* ALLOCation file (HFS+) */
 
#define HFS_START_CNID   7 /* STARTup file (HFS+) */
 
#define HFS_ATTR_CNID   8 /* ATTRibutes file (HFS+) */
 
#define HFS_EXCH_CNID   15 /* ExchangeFiles temp id */
 
#define HFS_FIRSTUSER_CNID   16
 
#define HFS_CDR_DIR   0x01 /* folder (directory) */
 
#define HFS_CDR_FIL   0x02 /* file */
 
#define HFS_CDR_THD   0x03 /* folder (directory) thread */
 
#define HFS_CDR_FTH   0x04 /* file thread */
 
#define HFS_FK_DATA   0x00
 
#define HFS_FK_RSRC   0xFF
 
#define HFS_FIL_LOCK   0x01 /* locked */
 
#define HFS_FIL_THD   0x02 /* file thread */
 
#define HFS_FIL_DOPEN   0x04 /* data fork open */
 
#define HFS_FIL_ROPEN   0x08 /* resource fork open */
 
#define HFS_FIL_DIR   0x10 /* directory (always clear) */
 
#define HFS_FIL_NOCOPY   0x40 /* copy-protected file */
 
#define HFS_FIL_USED   0x80 /* open */
 
#define HFS_DIR_LOCK   0x01 /* locked */
 
#define HFS_DIR_THD   0x02 /* directory thread */
 
#define HFS_DIR_INEXPFOLDER   0x04 /* in a shared area */
 
#define HFS_DIR_MOUNTED   0x08 /* mounted */
 
#define HFS_DIR_DIR   0x10 /* directory (always set) */
 
#define HFS_DIR_EXPFOLDER   0x20 /* share point */
 
#define HFS_FLG_INITED   0x0100
 
#define HFS_FLG_LOCKED   0x1000
 
#define HFS_FLG_INVISIBLE   0x4000
 
#define HFS_BKEY(X)   (((void)((X)->KeyLen)), ((struct hfs_bkey *)(X)))
 
#define HFS_MAX_CAT_KEYLEN   (sizeof(struct hfs_cat_key) - sizeof(u8))
 
#define HFS_MAX_EXT_KEYLEN   (sizeof(struct hfs_ext_key) - sizeof(u8))
 

Typedefs

typedef union hfs_btree_key hfs_btree_key
 
typedef union hfs_btree_key btree_key
 
typedef struct hfs_extent hfs_extent_rec [3]
 
typedef union hfs_cat_rec hfs_cat_rec
 

Variables

struct hfs_name __packed
 

Macro Definition Documentation

#define HFS_ALLOC_CNID   6 /* ALLOCation file (HFS+) */

Definition at line 46 of file hfs.h.

#define HFS_ATTR_CNID   8 /* ATTRibutes file (HFS+) */

Definition at line 48 of file hfs.h.

#define HFS_BAD_CNID   5 /* BAD blocks file */

Definition at line 45 of file hfs.h.

#define HFS_BKEY (   X)    (((void)((X)->KeyLen)), ((struct hfs_bkey *)(X)))

Definition at line 146 of file hfs.h.

#define HFS_CAT_CNID   4 /* CATalog B-tree */

Definition at line 44 of file hfs.h.

#define HFS_CDR_DIR   0x01 /* folder (directory) */

Definition at line 53 of file hfs.h.

#define HFS_CDR_FIL   0x02 /* file */

Definition at line 54 of file hfs.h.

#define HFS_CDR_FTH   0x04 /* file thread */

Definition at line 56 of file hfs.h.

#define HFS_CDR_THD   0x03 /* folder (directory) thread */

Definition at line 55 of file hfs.h.

#define HFS_DD_BLK   0 /* Driver Descriptor block */

Definition at line 13 of file hfs.h.

#define HFS_DIR_DIR   0x10 /* directory (always set) */

Definition at line 76 of file hfs.h.

#define HFS_DIR_EXPFOLDER   0x20 /* share point */

Definition at line 77 of file hfs.h.

#define HFS_DIR_INEXPFOLDER   0x04 /* in a shared area */

Definition at line 74 of file hfs.h.

#define HFS_DIR_LOCK   0x01 /* locked */

Definition at line 72 of file hfs.h.

#define HFS_DIR_MOUNTED   0x08 /* mounted */

Definition at line 75 of file hfs.h.

#define HFS_DIR_THD   0x02 /* directory thread */

Definition at line 73 of file hfs.h.

#define HFS_DRVR_DESC_MAGIC   0x4552 /* "ER": driver descriptor map */

Definition at line 18 of file hfs.h.

#define HFS_EXCH_CNID   15 /* ExchangeFiles temp id */

Definition at line 49 of file hfs.h.

#define HFS_EXT_CNID   3 /* EXTents B-tree */

Definition at line 43 of file hfs.h.

#define HFS_FIL_DIR   0x10 /* directory (always clear) */

Definition at line 67 of file hfs.h.

#define HFS_FIL_DOPEN   0x04 /* data fork open */

Definition at line 65 of file hfs.h.

#define HFS_FIL_LOCK   0x01 /* locked */

Definition at line 63 of file hfs.h.

#define HFS_FIL_NOCOPY   0x40 /* copy-protected file */

Definition at line 68 of file hfs.h.

#define HFS_FIL_ROPEN   0x08 /* resource fork open */

Definition at line 66 of file hfs.h.

#define HFS_FIL_THD   0x02 /* file thread */

Definition at line 64 of file hfs.h.

#define HFS_FIL_USED   0x80 /* open */

Definition at line 69 of file hfs.h.

#define HFS_FIRSTUSER_CNID   16

Definition at line 50 of file hfs.h.

#define HFS_FK_DATA   0x00

Definition at line 59 of file hfs.h.

#define HFS_FK_RSRC   0xFF

Definition at line 60 of file hfs.h.

#define HFS_FLG_INITED   0x0100

Definition at line 80 of file hfs.h.

#define HFS_FLG_INVISIBLE   0x4000

Definition at line 82 of file hfs.h.

#define HFS_FLG_LOCKED   0x1000

Definition at line 81 of file hfs.h.

#define HFS_MAX_CAT_KEYLEN   (sizeof(struct hfs_cat_key) - sizeof(u8))

Definition at line 170 of file hfs.h.

#define HFS_MAX_EXT_KEYLEN   (sizeof(struct hfs_ext_key) - sizeof(u8))

Definition at line 171 of file hfs.h.

#define HFS_MAX_NAMELEN   128

Definition at line 28 of file hfs.h.

#define HFS_MAX_VALENCE   32767U

Definition at line 29 of file hfs.h.

#define HFS_MDB_BLK   2 /* Block (w/i partition) of MDB */

Definition at line 15 of file hfs.h.

#define HFS_MFS_SUPER_MAGIC   0xD2D7 /* MFS MDB (super block) */

Definition at line 22 of file hfs.h.

#define HFS_NAMELEN   31 /* maximum length of an HFS filename */

Definition at line 27 of file hfs.h.

#define HFS_NEW_PMAP_MAGIC   0x504D /* "PM": new-type partition map */

Definition at line 20 of file hfs.h.

#define HFS_OLD_PMAP_MAGIC   0x5453 /* "TS": old-type partition map */

Definition at line 19 of file hfs.h.

#define HFS_PMAP_BLK   1 /* First block of partition map */

Definition at line 14 of file hfs.h.

#define HFS_POR_CNID   1 /* Parent Of the Root */

Definition at line 41 of file hfs.h.

#define HFS_ROOT_CNID   2 /* ROOT directory */

Definition at line 42 of file hfs.h.

#define HFS_SB_ATTRIB_HLOCK   (1 << 7)

Definition at line 34 of file hfs.h.

#define HFS_SB_ATTRIB_INCNSTNT   (1 << 11)

Definition at line 37 of file hfs.h.

#define HFS_SB_ATTRIB_SLOCK   (1 << 15)

Definition at line 38 of file hfs.h.

#define HFS_SB_ATTRIB_SPARED   (1 << 9)

Definition at line 36 of file hfs.h.

#define HFS_SB_ATTRIB_UNMNT   (1 << 8)

Definition at line 35 of file hfs.h.

#define HFS_SECTOR_SIZE   512 /* size of an HFS sector */

Definition at line 25 of file hfs.h.

#define HFS_SECTOR_SIZE_BITS   9 /* log_2(HFS_SECTOR_SIZE) */

Definition at line 26 of file hfs.h.

#define HFS_START_CNID   7 /* STARTup file (HFS+) */

Definition at line 47 of file hfs.h.

#define HFS_SUPER_MAGIC   0x4244 /* "BD": HFS MDB (super block) */

Definition at line 21 of file hfs.h.

Typedef Documentation

typedef union hfs_btree_key btree_key

Definition at line 173 of file hfs.h.

typedef union hfs_cat_rec hfs_cat_rec
typedef struct hfs_extent hfs_extent_rec[3]

Definition at line 179 of file hfs.h.

Variable Documentation