Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_fat.h

    r991f645 r7efc517  
    6161#define fat_clusters_get(numc, bs, dh, fc) \
    6262    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,
     63extern int fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t,
    6464    fat_cluster_t *, uint16_t *, uint16_t);
    6565
    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);
     66#define fat_block_get(b, bs, np, bn, flags) \
     67    _fat_block_get((b), (bs), (np)->idx->dev_handle, (np)->firstc, (bn), \
     68    (flags))
    7069
     70extern int _fat_block_get(block_t **, struct fat_bs *, dev_handle_t,
     71    fat_cluster_t, bn_t, int);
     72 
    7173extern int fat_append_clusters(struct fat_bs *, struct fat_node *,
    72     fat_cluster_t, fat_cluster_t);
     74    fat_cluster_t);
    7375extern int fat_chop_clusters(struct fat_bs *, struct fat_node *,
    7476    fat_cluster_t);
    75 extern int fat_alloc_clusters(struct fat_bs *, devmap_handle_t, unsigned,
     77extern int fat_alloc_clusters(struct fat_bs *, dev_handle_t, unsigned,
    7678    fat_cluster_t *, fat_cluster_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,
     79extern int fat_free_clusters(struct fat_bs *, dev_handle_t, fat_cluster_t);
     80extern int fat_alloc_shadow_clusters(struct fat_bs *, dev_handle_t,
    7981    fat_cluster_t *, unsigned);
    80 extern int fat_get_cluster(struct fat_bs *, devmap_handle_t, unsigned,
     82extern int fat_get_cluster(struct fat_bs *, dev_handle_t, unsigned,
    8183    fat_cluster_t, fat_cluster_t *);
    82 extern int fat_set_cluster(struct fat_bs *, devmap_handle_t, unsigned,
     84extern int fat_set_cluster(struct fat_bs *, dev_handle_t, unsigned,
    8385    fat_cluster_t, fat_cluster_t);
    8486extern 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    off_t);
     88extern int fat_zero_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t);
     89extern int fat_sanity_check(struct fat_bs *, dev_handle_t);
    8890
    8991#endif
Note: See TracChangeset for help on using the changeset viewer.