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

Changeset 3f93cdbe in mainline


Ignore:
Timestamp:
2010-02-06T10:47:45Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
25e963a, 696979ce
Parents:
393bef1
Message:

Support for FAT16 file systems with 65536 or more sectors.

File:
1 edited

Legend:

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

    r393bef1 r3f93cdbe  
    361361        uint16_t rscnt;
    362362        uint16_t sf;
    363         uint16_t ts;
     363        uint32_t ts;
    364364        unsigned rde;
    365365        unsigned rds;
     
    379379        sf = uint16_t_le2host(bs->sec_per_fat);
    380380        rde = uint16_t_le2host(bs->root_ent_max);
    381         ts = uint16_t_le2host(bs->totsec16);
     381        ts = (uint32_t) uint16_t_le2host(bs->totsec16);
     382        if (ts == 0)
     383                ts = uint32_t_le2host(bs->totsec32);
    382384
    383385        rds = (sizeof(fat_dentry_t) * rde) / bps;
Note: See TracChangeset for help on using the changeset viewer.