50,27 → 50,31 |
/* internally used to mark root directory */ |
#define FAT_CLST_ROOT FAT_CLST_RES1 |
|
|
/* forward declarations */ |
struct block; |
struct fat_node; |
struct fat_bs; |
|
typedef uint16_t fat_cluster_t; |
|
#define fat_block_get(np, off) \ |
_fat_block_get((np)->idx->dev_handle, (np)->firstc, (off)) |
#define fat_block_get(bs, np, off) \ |
_fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (off)) |
|
extern struct block *_fat_block_get(dev_handle_t, fat_cluster_t, off_t); |
extern uint16_t _fat_blcks_get(dev_handle_t, fat_cluster_t, fat_cluster_t *); |
extern uint16_t fat_bps_get(dev_handle_t); |
extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t, |
fat_cluster_t, off_t); |
extern uint16_t _fat_blcks_get(struct fat_bs *, dev_handle_t, fat_cluster_t, |
fat_cluster_t *); |
|
extern void fat_append_clusters(struct fat_node *, fat_cluster_t); |
extern int fat_alloc_clusters(dev_handle_t, unsigned, fat_cluster_t *, |
fat_cluster_t *); |
extern void fat_alloc_shadow_clusters(dev_handle_t, fat_cluster_t *, unsigned); |
extern void fat_mark_cluster(dev_handle_t, unsigned, fat_cluster_t, |
extern void fat_append_clusters(struct fat_bs *, struct fat_node *, |
fat_cluster_t); |
extern void fat_fill_gap(struct fat_node *, fat_cluster_t, off_t); |
extern int fat_alloc_clusters(struct fat_bs *, dev_handle_t, unsigned, |
fat_cluster_t *, fat_cluster_t *); |
extern void fat_alloc_shadow_clusters(struct fat_bs *, dev_handle_t, |
fat_cluster_t *, unsigned); |
extern void fat_mark_cluster(struct fat_bs *, dev_handle_t, unsigned, |
fat_cluster_t, fat_cluster_t); |
extern void fat_fill_gap(struct fat_bs *, struct fat_node *, fat_cluster_t, |
off_t); |
|
#endif |
|