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

Changeset d963742 in mainline


Ignore:
Timestamp:
2011-07-14T11:39:11Z (10 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master
Children:
5a9a1aaf
Parents:
4dd9395
Message:

FAT: replace uint16_t with uint32_t in fat_cluster_walk and _fat_block_get
for better FAT32 support

Location:
uspace/srv/fs/fat
Files:
2 edited

Legend:

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

    r4dd9395 rd963742  
    8282int
    8383fat_cluster_walk(fat_bs_t *bs, devmap_handle_t devmap_handle, fat_cluster_t firstc,
    84     fat_cluster_t *lastc, uint16_t *numc, uint16_t max_clusters)
    85 {
    86         uint16_t clusters = 0;
     84    fat_cluster_t *lastc, uint32_t *numc, uint32_t max_clusters)
     85{
     86        uint32_t clusters = 0;
    8787        fat_cluster_t clst = firstc, clst_last1 = FAT_CLST_LAST1(bs);
    8888        fat_cluster_t clst_bad = FAT_CLST_BAD(bs);
     
    199199    fat_cluster_t fcl, fat_cluster_t *clp, aoff64_t bn, int flags)
    200200{
    201         uint16_t clusters;
    202         unsigned max_clusters;
     201        uint32_t clusters;
     202        uint32_t max_clusters;
    203203        fat_cluster_t c;
    204204        int rc;
  • uspace/srv/fs/fat/fat_fat.h

    r4dd9395 rd963742  
    104104
    105105#define fat_clusters_get(numc, bs, dh, fc) \
    106     fat_cluster_walk((bs), (dh), (fc), NULL, (numc), (uint16_t) -1)
     106    fat_cluster_walk((bs), (dh), (fc), NULL, (numc), (uint32_t) -1)
    107107extern int fat_cluster_walk(struct fat_bs *, devmap_handle_t, fat_cluster_t,
    108     fat_cluster_t *, uint16_t *, uint16_t);
     108    fat_cluster_t *, uint32_t *, uint32_t);
    109109
    110110extern int fat_block_get(block_t **, struct fat_bs *, struct fat_node *,
Note: See TracChangeset for help on using the changeset viewer.