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

Changeset a69e396 in mainline


Ignore:
Timestamp:
2012-02-24T08:36:02Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
7f381e5
Parents:
cbd8a72
Message:

mkexfat: take into account the size of the upcase table when computing the number of allocated clusters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkexfat/mkexfat.c

    rcbd8a72 ra69e396  
    148148        cfg->bitmap_size = n_req_clusters / 8;
    149149
     150        /* Compute the number of clusters reserved to the bitmap */
    150151        cfg->allocated_clusters = div_round_up(cfg->bitmap_size,
    151152            cfg->cluster_size);
     
    153154        /* This account for the root directory */
    154155        cfg->allocated_clusters++;
    155         /* FIXME: add upcase table clusters to allocated_clusters */
     156
     157        /* Compute the number of clusters reserved to the upcase table */
     158        cfg->allocated_clusters += div_round_up(sizeof(upcase_table),
     159            cfg->cluster_size);
    156160
    157161        /* FIXME: set the real rootdir cluster */
Note: See TracChangeset for help on using the changeset viewer.