Changeset e15f4d5 in mainline
- Timestamp:
- 2012-02-21T19:38:19Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 55dbaeb
- Parents:
- 207ad8bd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkexfat/mkexfat.c
r207ad8bd re15f4d5 88 88 cfg->sector_size; 89 89 90 /** Number of clusters required to index the entire device, it must91 * be less then UINT32_MAX.92 */93 90 aoff64_t n_req_clusters = volume_bytes / DEFAULT_CLUSTER_SIZE; 94 91 cfg->cluster_size = DEFAULT_CLUSTER_SIZE; 95 92 96 93 /* 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. 98 96 */ 99 while (n_req_clusters > 4000000&&97 while (n_req_clusters > 16000000ULL && 100 98 (cfg->cluster_size < 32 * 1024 * 1024)) { 101 99 … … 104 102 } 105 103 104 /* The first two clusters are reserved */ 106 105 cfg->total_clusters = n_req_clusters + 2; 107 106
Note:
See TracChangeset
for help on using the changeset viewer.