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


Ignore:
Timestamp:
2011-07-14T11:33:54Z (14 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4dd9395
Parents:
e584623
Message:

exFAT: functions for FAT.

  1. fat_cluster_walk
  2. exfat_block_get
  3. exfat_block_get_by_clst
File:
1 edited

Legend:

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

    re584623 rc223ee2  
    4545#define EXFAT_ROOT_PAR  0
    4646
    47 #define EXFAT_CLST_LAST 0xfffffff6
    48 #define EXFAT_CLST_BAD  0xfffffff7
    49 #define EXFAT_CLST_EOF  0xffffffff
     47#define EXFAT_CLST_FIRST        0x00000002
     48#define EXFAT_CLST_LAST         0xfffffff6
     49#define EXFAT_CLST_BAD          0xfffffff7
     50#define EXFAT_CLST_EOF          0xffffffff
    5051
    5152/* forward declarations */
     
    5758
    5859
     60#define fat_clusters_get(numc, bs, dh, fc) \
     61    fat_cluster_walk((bs), (dh), (fc), NULL, (numc), (uint32_t) -1)
     62extern int fat_cluster_walk(struct exfat_bs *bs, devmap_handle_t devmap_handle,
     63    exfat_cluster_t firstc, exfat_cluster_t *lastc, uint32_t *numc,
     64    uint32_t max_clusters);
     65extern int exfat_block_get(block_t **block, struct exfat_bs *bs,
     66    struct exfat_node *nodep, aoff64_t bn, int flags);
     67extern int exfat_block_get_by_clst(block_t **block, struct exfat_bs *bs,
     68    devmap_handle_t devmap_handle, bool fragmented, exfat_cluster_t fcl,
     69    exfat_cluster_t *clp, aoff64_t bn, int flags);
     70
    5971extern int fat_get_cluster(struct exfat_bs *bs, devmap_handle_t devmap_handle,
    6072    exfat_cluster_t clst, exfat_cluster_t *value);
     
    6274    exfat_cluster_t clst, exfat_cluster_t value);
    6375extern int exfat_sanity_check(struct exfat_bs *, devmap_handle_t);
     76
     77
     78
    6479#endif
    6580
Note: See TracChangeset for help on using the changeset viewer.