34#define CR_PRIM_ALLOC 4
35#define CR_PRIM_START 5
37#define CR_BTREE_ATTR 7
38#define CR_BTREE_EXT_0 8
39#define CR_BTREE_EXT_CAT 9
40#define CR_BTREE_EXT_EXT 10
41#define CR_BTREE_EXT_ATTR 11
42#define CR_BTREE_EXT_ALLOC 12
43#define CR_BTREE_EXT_START 13
44#define CR_BTREE_CAT_JIB 14
45#define CR_BTREE_CAT_JL 15
54#define CR_NEW_ALLOC_DIV 4
102 uint32_t block, uint16_t
offset, uint8_t sbb,
103 uint8_t where, uint8_t index);
112static __inline__
unsigned int
115 return cache->needed_alloc_size;
void hfsc_delete_cache(HfsCPrivateCache *cache)
Definition: cache.c:112
HfsCPrivateExtent * hfsc_cache_search_extent(HfsCPrivateCache *cache, uint32_t start)
Definition: cache.c:177
HfsCPrivateExtent * hfsc_cache_move_extent(HfsCPrivateCache *cache, uint32_t old_start, uint32_t new_start)
Definition: cache.c:194
HfsCPrivateExtent * hfsc_cache_add_extent(HfsCPrivateCache *cache, uint32_t start, uint32_t length, uint32_t block, uint16_t offset, uint8_t sbb, uint8_t where, uint8_t index)
Definition: cache.c:120
HfsCPrivateCache * hfsc_new_cache(unsigned int block_number, unsigned int file_number)
Definition: cache.c:60
uint32_t start
Definition: dos.c:4
uint32_t length
Definition: dos.c:5
offset
Definition: fdasd.h:264
unsigned char cache
Definition: fdasd.h:13
HfsCPrivateExtent * table
Definition: cache.h:72
unsigned int table_first_free
Definition: cache.h:74
unsigned int table_size
Definition: cache.h:73
struct _HfsCPrivateCacheTable * next_cache
Definition: cache.h:71
unsigned int linked_ref_size
Definition: cache.h:85
HfsCPrivateCacheTable * last_table
Definition: cache.h:83
unsigned int needed_alloc_size
Definition: cache.h:88
unsigned int block_number
Definition: cache.h:86
unsigned int first_cachetable_size
Definition: cache.h:87
HfsCPrivateCacheTable * table_list
Definition: cache.h:82
HfsCPrivateExtent ** linked_ref
Definition: cache.h:84
uint32_t ref_block
Definition: cache.h:61
unsigned where
Definition: cache.h:64
unsigned ref_index
Definition: cache.h:65
uint32_t ext_start
Definition: cache.h:59
uint16_t ref_offset
Definition: cache.h:62
uint32_t ext_length
Definition: cache.h:60
uint8_t sect_by_block
Definition: cache.h:63
struct _HfsCPrivateExtent * next
Definition: cache.h:58