Changes in uspace/srv/fs/fat/fat_fat.h [5f116e7:991f645] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.h
r5f116e7 r991f645 59 59 typedef uint16_t fat_cluster_t; 60 60 61 #define fat_clusters_get( bs, dh, fc) \62 fat_cluster_walk((bs), (dh), (fc), NULL, ( uint16_t) -1)63 extern uint16_t fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t,64 fat_cluster_t *, uint16_t );61 #define fat_clusters_get(numc, bs, dh, fc) \ 62 fat_cluster_walk((bs), (dh), (fc), NULL, (numc), (uint16_t) -1) 63 extern int fat_cluster_walk(struct fat_bs *, devmap_handle_t, fat_cluster_t, 64 fat_cluster_t *, uint16_t *, uint16_t); 65 65 66 #define fat_block_get(bs, np, bn, flags) \ 67 _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (bn), (flags)) 66 extern int fat_block_get(block_t **, struct fat_bs *, struct fat_node *, 67 aoff64_t, int); 68 extern int _fat_block_get(block_t **, struct fat_bs *, devmap_handle_t, 69 fat_cluster_t, fat_cluster_t *, aoff64_t, int); 68 70 69 extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t, 70 fat_cluster_t, bn_t, int); 71 72 extern void fat_append_clusters(struct fat_bs *, struct fat_node *, 71 extern int fat_append_clusters(struct fat_bs *, struct fat_node *, 72 fat_cluster_t, fat_cluster_t); 73 extern int fat_chop_clusters(struct fat_bs *, struct fat_node *, 73 74 fat_cluster_t); 74 extern void fat_chop_clusters(struct fat_bs *, struct fat_node *, 75 fat_cluster_t); 76 extern int fat_alloc_clusters(struct fat_bs *, dev_handle_t, unsigned, 75 extern int fat_alloc_clusters(struct fat_bs *, devmap_handle_t, unsigned, 77 76 fat_cluster_t *, fat_cluster_t *); 78 extern void fat_free_clusters(struct fat_bs *, dev_handle_t, fat_cluster_t);79 extern void fat_alloc_shadow_clusters(struct fat_bs *, dev_handle_t,77 extern int fat_free_clusters(struct fat_bs *, devmap_handle_t, fat_cluster_t); 78 extern int fat_alloc_shadow_clusters(struct fat_bs *, devmap_handle_t, 80 79 fat_cluster_t *, unsigned); 81 extern fat_cluster_t fat_get_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t); 82 extern void fat_set_cluster(struct fat_bs *, dev_handle_t, unsigned, 80 extern int fat_get_cluster(struct fat_bs *, devmap_handle_t, unsigned, 81 fat_cluster_t, fat_cluster_t *); 82 extern int fat_set_cluster(struct fat_bs *, devmap_handle_t, unsigned, 83 83 fat_cluster_t, fat_cluster_t); 84 extern void fat_fill_gap(struct fat_bs *, struct fat_node *, fat_cluster_t, 85 off_t); 86 extern void fat_zero_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t); 84 extern int fat_fill_gap(struct fat_bs *, struct fat_node *, fat_cluster_t, 85 aoff64_t); 86 extern int fat_zero_cluster(struct fat_bs *, devmap_handle_t, fat_cluster_t); 87 extern int fat_sanity_check(struct fat_bs *, devmap_handle_t); 87 88 88 89 #endif
Note:
See TracChangeset
for help on using the changeset viewer.