Rev 3535 | Rev 3588 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3535 | Rev 3561 | ||
|---|---|---|---|
| Line 55... | Line 55... | ||
| 55 | struct fat_node; |
55 | struct fat_node; |
| 56 | struct fat_bs; |
56 | struct fat_bs; |
| 57 | 57 | ||
| 58 | typedef uint16_t fat_cluster_t; |
58 | typedef uint16_t fat_cluster_t; |
| 59 | 59 | ||
| - | 60 | #define fat_clusters_get(bs, dh, fc) \ |
|
| - | 61 | fat_cluster_walk((bs), (dh), (fc), NULL, NULL, (uint16_t) -1) |
|
| 60 | #define fat_block_get(bs, np, off) \ |
62 | #define fat_block_get(bs, np, off) \ |
| 61 | _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (off)) |
63 | _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (off)) |
| 62 | 64 | ||
| 63 | extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t, |
65 | extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t, |
| 64 | fat_cluster_t, off_t); |
66 | fat_cluster_t, off_t); |
| 65 | extern uint16_t _fat_blcks_get(struct fat_bs *, dev_handle_t, fat_cluster_t, |
67 | extern uint16_t fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t, |
| 66 | fat_cluster_t *); |
68 | fat_cluster_t *, fat_cluster_t *, uint16_t); |
| 67 | 69 | ||
| 68 | extern void fat_append_clusters(struct fat_bs *, struct fat_node *, |
70 | extern void fat_append_clusters(struct fat_bs *, struct fat_node *, |
| 69 | fat_cluster_t); |
71 | fat_cluster_t); |
| 70 | extern int fat_alloc_clusters(struct fat_bs *, dev_handle_t, unsigned, |
72 | extern int fat_alloc_clusters(struct fat_bs *, dev_handle_t, unsigned, |
| 71 | fat_cluster_t *, fat_cluster_t *); |
73 | fat_cluster_t *, fat_cluster_t *); |