Changeset e15f4d5 in mainline for uspace/app/mkexfat/mkexfat.c


Ignore:
Timestamp:
2012-02-21T19:38:19Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
55dbaeb
Parents:
207ad8bd
Message:

mkexfat: Try to keep the FAT size under 64 Mb

File:
1 edited

Legend:

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

    r207ad8bd re15f4d5  
    8888            cfg->sector_size;
    8989
    90         /** Number of clusters required to index the entire device, it must
    91          * be less then UINT32_MAX.
    92          */
    9390        aoff64_t n_req_clusters = volume_bytes / DEFAULT_CLUSTER_SIZE;
    9491        cfg->cluster_size = DEFAULT_CLUSTER_SIZE;
    9592
    9693        /* Compute the required cluster size to index
    97          * the entire storage device.
     94         * the entire storage device and to keep the FAT
     95         * size less or equal to 64 Mb.
    9896         */
    99         while (n_req_clusters > 4000000 &&
     97        while (n_req_clusters > 16000000ULL &&
    10098            (cfg->cluster_size < 32 * 1024 * 1024)) {
    10199
     
    104102        }
    105103
     104        /* The first two clusters are reserved */
    106105        cfg->total_clusters = n_req_clusters + 2;
    107106
Note: See TracChangeset for help on using the changeset viewer.