Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f3d4cd35 in mainline for uspace/srv/fs/exfat/exfat_fat.h


Ignore:
Timestamp:
2011-08-14T07:06:33Z (10 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master
Children:
998a78f
Parents:
7f0c08c
Message:

exFAT: functions for managing clusters chain and skeleton for
bitmap operations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_fat.h

    r7f0c08c rf3d4cd35  
    5959
    6060
    61 #define fat_clusters_get(numc, bs, dh, fc) \
    62     fat_cluster_walk((bs), (dh), (fc), NULL, (numc), (uint32_t) -1)
    63 extern int fat_cluster_walk(struct exfat_bs *bs, devmap_handle_t devmap_handle,
     61#define exfat_clusters_get(numc, bs, dh, fc) \
     62    exfat_cluster_walk((bs), (dh), (fc), NULL, (numc), (uint32_t) -1)
     63extern int exfat_cluster_walk(struct exfat_bs *bs, devmap_handle_t devmap_handle,
    6464    exfat_cluster_t firstc, exfat_cluster_t *lastc, uint32_t *numc,
    6565    uint32_t max_clusters);
     
    7070    exfat_cluster_t *clp, aoff64_t bn, int flags);
    7171
    72 extern int fat_get_cluster(struct exfat_bs *bs, devmap_handle_t devmap_handle,
     72extern int exfat_get_cluster(struct exfat_bs *bs, devmap_handle_t devmap_handle,
    7373    exfat_cluster_t clst, exfat_cluster_t *value);
    74 extern int fat_set_cluster(struct exfat_bs *bs, devmap_handle_t devmap_handle,
     74extern int exfat_set_cluster(struct exfat_bs *bs, devmap_handle_t devmap_handle,
    7575    exfat_cluster_t clst, exfat_cluster_t value);
    7676extern int exfat_sanity_check(struct exfat_bs *, devmap_handle_t);
    7777
     78extern int bitmap_alloc_clusters(struct exfat_bs *bs, devmap_handle_t devmap_handle,
     79    exfat_cluster_t *firstc, exfat_cluster_t count);
     80extern int bitmap_append_clusters(struct exfat_bs *bs, struct exfat_node *nodep,
     81    exfat_cluster_t count);
     82extern int bitmap_free_clusters(struct exfat_bs *bs, struct exfat_node *nodep,
     83    exfat_cluster_t count);
     84extern int bitmap_replicate_clusters(struct exfat_bs *bs, struct exfat_node *nodep);
     85
     86extern int exfat_append_clusters(struct exfat_bs *, struct exfat_node *,
     87    exfat_cluster_t, exfat_cluster_t);
     88extern int exfat_chop_clusters(struct exfat_bs *, struct exfat_node *,
     89    exfat_cluster_t);
     90extern int exfat_alloc_clusters(struct exfat_bs *, devmap_handle_t, unsigned,
     91    exfat_cluster_t *, exfat_cluster_t *);
     92extern int exfat_free_clusters(struct exfat_bs *, devmap_handle_t, exfat_cluster_t);
    7893
    7994
Note: See TracChangeset for help on using the changeset viewer.