Linux Kernel
3.7.1
|
#include <linux/fs.h>
#include <linux/mutex.h>
#include <linux/buffer_head.h>
#include <linux/blkdev.h>
#include "hfsplus_raw.h"
Go to the source code of this file.
Data Structures | |
struct | hfs_btree |
struct | hfs_bnode |
struct | hfsplus_sb_info |
struct | hfsplus_inode_info |
struct | hfs_find_data |
struct | hfsplus_readdir_data |
Macros | |
#define | DBG_BNODE_REFS 0x00000001 |
#define | DBG_BNODE_MOD 0x00000002 |
#define | DBG_CAT_MOD 0x00000004 |
#define | DBG_INODE 0x00000008 |
#define | DBG_SUPER 0x00000010 |
#define | DBG_EXTENT 0x00000020 |
#define | DBG_BITMAP 0x00000040 |
#define | DBG_MASK (0) |
#define | dprint(flg, fmt, args...) |
#define | HFSPLUS_DEF_CR_TYPE 0x3F3F3F3F /* '????' */ |
#define | HFSPLUS_TYPE_DATA 0x00 |
#define | HFSPLUS_TYPE_RSRC 0xFF |
#define | NODE_HASH_SIZE 256 |
#define | HFS_BNODE_LOCK 0 |
#define | HFS_BNODE_ERROR 1 |
#define | HFS_BNODE_NEW 2 |
#define | HFS_BNODE_DIRTY 3 |
#define | HFS_BNODE_DELETED 4 |
#define | HFSPLUS_SB_WRITEBACKUP 0 |
#define | HFSPLUS_SB_NODECOMPOSE 1 |
#define | HFSPLUS_SB_FORCE 2 |
#define | HFSPLUS_SB_HFSX 3 |
#define | HFSPLUS_SB_CASEFOLD 4 |
#define | HFSPLUS_SB_NOBARRIER 5 |
#define | HFSPLUS_EXT_DIRTY 0x0001 |
#define | HFSPLUS_EXT_NEW 0x0002 |
#define | HFSPLUS_I_RSRC 0 /* represents a resource fork */ |
#define | HFSPLUS_I_CAT_DIRTY 1 /* has changes in the catalog tree */ |
#define | HFSPLUS_I_EXT_DIRTY 2 /* has changes in the extent tree */ |
#define | HFSPLUS_I_ALLOC_DIRTY 3 /* has changes in the allocation file */ |
#define | HFSPLUS_IS_RSRC(inode) test_bit(HFSPLUS_I_RSRC, &HFSPLUS_I(inode)->flags) |
#define | hfs_btree_open hfsplus_btree_open |
#define | hfs_btree_close hfsplus_btree_close |
#define | hfs_btree_write hfsplus_btree_write |
#define | hfs_bmap_alloc hfsplus_bmap_alloc |
#define | hfs_bmap_free hfsplus_bmap_free |
#define | hfs_bnode_read hfsplus_bnode_read |
#define | hfs_bnode_read_u16 hfsplus_bnode_read_u16 |
#define | hfs_bnode_read_u8 hfsplus_bnode_read_u8 |
#define | hfs_bnode_read_key hfsplus_bnode_read_key |
#define | hfs_bnode_write hfsplus_bnode_write |
#define | hfs_bnode_write_u16 hfsplus_bnode_write_u16 |
#define | hfs_bnode_clear hfsplus_bnode_clear |
#define | hfs_bnode_copy hfsplus_bnode_copy |
#define | hfs_bnode_move hfsplus_bnode_move |
#define | hfs_bnode_dump hfsplus_bnode_dump |
#define | hfs_bnode_unlink hfsplus_bnode_unlink |
#define | hfs_bnode_findhash hfsplus_bnode_findhash |
#define | hfs_bnode_find hfsplus_bnode_find |
#define | hfs_bnode_unhash hfsplus_bnode_unhash |
#define | hfs_bnode_free hfsplus_bnode_free |
#define | hfs_bnode_create hfsplus_bnode_create |
#define | hfs_bnode_get hfsplus_bnode_get |
#define | hfs_bnode_put hfsplus_bnode_put |
#define | hfs_brec_lenoff hfsplus_brec_lenoff |
#define | hfs_brec_keylen hfsplus_brec_keylen |
#define | hfs_brec_insert hfsplus_brec_insert |
#define | hfs_brec_remove hfsplus_brec_remove |
#define | hfs_find_init hfsplus_find_init |
#define | hfs_find_exit hfsplus_find_exit |
#define | __hfs_brec_find __hplusfs_brec_find |
#define | hfs_brec_find hfsplus_brec_find |
#define | hfs_brec_read hfsplus_brec_read |
#define | hfs_brec_goto hfsplus_brec_goto |
#define | hfs_part_find hfsplus_part_find |
#define | HFSPLUS_IOC_EXT2_GETFLAGS FS_IOC_GETFLAGS |
#define | HFSPLUS_IOC_EXT2_SETFLAGS FS_IOC_SETFLAGS |
#define | HFSPLUS_IOC_BLESS _IO('h', 0x80) |
#define | __hfsp_mt2ut(t) (be32_to_cpu(t) - 2082844800U) |
#define | __hfsp_ut2mt(t) (cpu_to_be32(t + 2082844800U)) |
#define | hfsp_mt2ut(t) (struct timespec){ .tv_sec = __hfsp_mt2ut(t) } |
#define | hfsp_ut2mt(t) __hfsp_ut2mt((t).tv_sec) |
#define | hfsp_now2mt() __hfsp_ut2mt(get_seconds()) |
Typedefs | |
typedef int(* | btree_keycmp )(const hfsplus_btree_key *, const hfsplus_btree_key *) |
#define __hfs_brec_find __hplusfs_brec_find |
Definition at line 305 of file hfsplus_fs.h.
#define __hfsp_mt2ut | ( | t | ) | (be32_to_cpu(t) - 2082844800U) |
Definition at line 464 of file hfsplus_fs.h.
#define __hfsp_ut2mt | ( | t | ) | (cpu_to_be32(t + 2082844800U)) |
Definition at line 465 of file hfsplus_fs.h.
#define DBG_BITMAP 0x00000040 |
Definition at line 25 of file hfsplus_fs.h.
#define DBG_BNODE_MOD 0x00000002 |
Definition at line 20 of file hfsplus_fs.h.
#define DBG_BNODE_REFS 0x00000001 |
Definition at line 19 of file hfsplus_fs.h.
#define DBG_CAT_MOD 0x00000004 |
Definition at line 21 of file hfsplus_fs.h.
#define DBG_EXTENT 0x00000020 |
Definition at line 24 of file hfsplus_fs.h.
#define DBG_INODE 0x00000008 |
Definition at line 22 of file hfsplus_fs.h.
#define DBG_MASK (0) |
Definition at line 32 of file hfsplus_fs.h.
#define DBG_SUPER 0x00000010 |
Definition at line 23 of file hfsplus_fs.h.
#define dprint | ( | flg, | |
fmt, | |||
args... | |||
) |
Definition at line 34 of file hfsplus_fs.h.
#define hfs_bmap_alloc hfsplus_bmap_alloc |
Definition at line 279 of file hfsplus_fs.h.
#define hfs_bmap_free hfsplus_bmap_free |
Definition at line 280 of file hfsplus_fs.h.
#define hfs_bnode_clear hfsplus_bnode_clear |
Definition at line 287 of file hfsplus_fs.h.
#define hfs_bnode_copy hfsplus_bnode_copy |
Definition at line 288 of file hfsplus_fs.h.
#define hfs_bnode_create hfsplus_bnode_create |
Definition at line 296 of file hfsplus_fs.h.
#define HFS_BNODE_DELETED 4 |
Definition at line 104 of file hfsplus_fs.h.
#define HFS_BNODE_DIRTY 3 |
Definition at line 103 of file hfsplus_fs.h.
#define hfs_bnode_dump hfsplus_bnode_dump |
Definition at line 290 of file hfsplus_fs.h.
#define HFS_BNODE_ERROR 1 |
Definition at line 101 of file hfsplus_fs.h.
#define hfs_bnode_find hfsplus_bnode_find |
Definition at line 293 of file hfsplus_fs.h.
#define hfs_bnode_findhash hfsplus_bnode_findhash |
Definition at line 292 of file hfsplus_fs.h.
#define hfs_bnode_free hfsplus_bnode_free |
Definition at line 295 of file hfsplus_fs.h.
#define hfs_bnode_get hfsplus_bnode_get |
Definition at line 297 of file hfsplus_fs.h.
#define HFS_BNODE_LOCK 0 |
Definition at line 100 of file hfsplus_fs.h.
#define hfs_bnode_move hfsplus_bnode_move |
Definition at line 289 of file hfsplus_fs.h.
#define HFS_BNODE_NEW 2 |
Definition at line 102 of file hfsplus_fs.h.
#define hfs_bnode_put hfsplus_bnode_put |
Definition at line 298 of file hfsplus_fs.h.
#define hfs_bnode_read hfsplus_bnode_read |
Definition at line 281 of file hfsplus_fs.h.
#define hfs_bnode_read_key hfsplus_bnode_read_key |
Definition at line 284 of file hfsplus_fs.h.
#define hfs_bnode_read_u16 hfsplus_bnode_read_u16 |
Definition at line 282 of file hfsplus_fs.h.
#define hfs_bnode_read_u8 hfsplus_bnode_read_u8 |
Definition at line 283 of file hfsplus_fs.h.
#define hfs_bnode_unhash hfsplus_bnode_unhash |
Definition at line 294 of file hfsplus_fs.h.
#define hfs_bnode_unlink hfsplus_bnode_unlink |
Definition at line 291 of file hfsplus_fs.h.
#define hfs_bnode_write hfsplus_bnode_write |
Definition at line 285 of file hfsplus_fs.h.
#define hfs_bnode_write_u16 hfsplus_bnode_write_u16 |
Definition at line 286 of file hfsplus_fs.h.
#define hfs_brec_find hfsplus_brec_find |
Definition at line 306 of file hfsplus_fs.h.
#define hfs_brec_goto hfsplus_brec_goto |
Definition at line 308 of file hfsplus_fs.h.
#define hfs_brec_insert hfsplus_brec_insert |
Definition at line 301 of file hfsplus_fs.h.
#define hfs_brec_keylen hfsplus_brec_keylen |
Definition at line 300 of file hfsplus_fs.h.
#define hfs_brec_lenoff hfsplus_brec_lenoff |
Definition at line 299 of file hfsplus_fs.h.
#define hfs_brec_read hfsplus_brec_read |
Definition at line 307 of file hfsplus_fs.h.
#define hfs_brec_remove hfsplus_brec_remove |
Definition at line 302 of file hfsplus_fs.h.
#define hfs_btree_close hfsplus_btree_close |
Definition at line 277 of file hfsplus_fs.h.
#define hfs_btree_open hfsplus_btree_open |
Definition at line 276 of file hfsplus_fs.h.
#define hfs_btree_write hfsplus_btree_write |
Definition at line 278 of file hfsplus_fs.h.
#define hfs_find_exit hfsplus_find_exit |
Definition at line 304 of file hfsplus_fs.h.
#define hfs_find_init hfsplus_find_init |
Definition at line 303 of file hfsplus_fs.h.
#define hfs_part_find hfsplus_part_find |
Definition at line 309 of file hfsplus_fs.h.
Definition at line 468 of file hfsplus_fs.h.
#define hfsp_now2mt | ( | ) | __hfsp_ut2mt(get_seconds()) |
Definition at line 470 of file hfsplus_fs.h.
#define hfsp_ut2mt | ( | t | ) | __hfsp_ut2mt((t).tv_sec) |
Definition at line 469 of file hfsplus_fs.h.
#define HFSPLUS_DEF_CR_TYPE 0x3F3F3F3F /* '????' */ |
Definition at line 39 of file hfsplus_fs.h.
#define HFSPLUS_EXT_DIRTY 0x0001 |
Definition at line 219 of file hfsplus_fs.h.
#define HFSPLUS_EXT_NEW 0x0002 |
Definition at line 220 of file hfsplus_fs.h.
Definition at line 225 of file hfsplus_fs.h.
Definition at line 223 of file hfsplus_fs.h.
Definition at line 224 of file hfsplus_fs.h.
Definition at line 222 of file hfsplus_fs.h.
Definition at line 325 of file hfsplus_fs.h.
#define HFSPLUS_IOC_EXT2_GETFLAGS FS_IOC_GETFLAGS |
Definition at line 318 of file hfsplus_fs.h.
#define HFSPLUS_IOC_EXT2_SETFLAGS FS_IOC_SETFLAGS |
Definition at line 319 of file hfsplus_fs.h.
#define HFSPLUS_IS_RSRC | ( | inode | ) | test_bit(HFSPLUS_I_RSRC, &HFSPLUS_I(inode)->flags) |
Definition at line 227 of file hfsplus_fs.h.
#define HFSPLUS_SB_CASEFOLD 4 |
Definition at line 167 of file hfsplus_fs.h.
#define HFSPLUS_SB_FORCE 2 |
Definition at line 165 of file hfsplus_fs.h.
#define HFSPLUS_SB_HFSX 3 |
Definition at line 166 of file hfsplus_fs.h.
#define HFSPLUS_SB_NOBARRIER 5 |
Definition at line 168 of file hfsplus_fs.h.
#define HFSPLUS_SB_NODECOMPOSE 1 |
Definition at line 164 of file hfsplus_fs.h.
#define HFSPLUS_SB_WRITEBACKUP 0 |
Definition at line 163 of file hfsplus_fs.h.
#define HFSPLUS_TYPE_DATA 0x00 |
Definition at line 41 of file hfsplus_fs.h.
#define HFSPLUS_TYPE_RSRC 0xFF |
Definition at line 42 of file hfsplus_fs.h.
#define NODE_HASH_SIZE 256 |
Definition at line 47 of file hfsplus_fs.h.
Definition at line 44 of file hfsplus_fs.h.
int __hfs_brec_find | ( | struct hfs_bnode * | , |
struct hfs_find_data * | |||
) |
int hfs_brec_find | ( | struct hfs_find_data * | ) |
int hfs_brec_remove | ( | struct hfs_find_data * | ) |
|
read |
void hfs_find_exit | ( | struct hfs_find_data * | ) |
int hfs_find_init | ( | struct hfs_btree * | , |
struct hfs_find_data * | |||
) |
int hfs_part_find | ( | struct super_block * | , |
sector_t * | , | ||
sector_t * | |||
) |
Definition at line 58 of file part_tbl.c.
int hfsplus_asc2uni | ( | struct super_block * | , |
struct hfsplus_unistr * | , | ||
const char * | , | ||
int | |||
) |
int hfsplus_block_free | ( | struct super_block * | , |
u32 | , | ||
u32 | |||
) |
int hfsplus_cat_read_inode | ( | struct inode * | , |
struct hfs_find_data * | |||
) |
void hfsplus_cat_set_perms | ( | struct inode * | inode, |
struct hfsplus_perm * | perms | ||
) |
void hfsplus_fill_defaults | ( | struct hfsplus_sb_info * | ) |
int hfsplus_find_cat | ( | struct super_block * | , |
u32 | , | ||
struct hfs_find_data * | |||
) |
int hfsplus_free_fork | ( | struct super_block * | , |
u32 | , | ||
struct hfsplus_fork_raw * | , | ||
int | |||
) |
|
read |
void hfsplus_inode_read_fork | ( | struct inode * | , |
struct hfsplus_fork_raw * | |||
) |
void hfsplus_inode_write_fork | ( | struct inode * | , |
struct hfsplus_fork_raw * | |||
) |
void hfsplus_mark_mdb_dirty | ( | struct super_block * | sb | ) |
|
read |
int hfsplus_parse_options | ( | char * | , |
struct hfsplus_sb_info * | |||
) |
int hfsplus_read_wrapper | ( | struct super_block * | ) |
int hfsplus_strcasecmp | ( | const struct hfsplus_unistr * | , |
const struct hfsplus_unistr * | |||
) |
int hfsplus_strcmp | ( | const struct hfsplus_unistr * | , |
const struct hfsplus_unistr * | |||
) |
int hfsplus_uni2asc | ( | struct super_block * | , |
const struct hfsplus_unistr * | , | ||
char * | , | ||
int * | |||
) |
struct address_space_operations hfsplus_aops |
struct address_space_operations hfsplus_btree_aops |
struct dentry_operations hfsplus_dentry_operations |
struct inode_operations hfsplus_dir_inode_operations |
struct file_operations hfsplus_dir_operations |