Changeset b6eb5da in mainline
- Timestamp:
- 2012-02-28T20:44:30Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9bbe54f
- Parents:
- 2601383
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkexfat/mkexfat.c
r2601383 rb6eb5da 164 164 165 165 cfg->cluster_size <<= 1; 166 cfg->total_clusters = div_round_up(volume_bytes, 167 cfg->cluster_size); 166 cfg->total_clusters = volume_bytes / cfg->cluster_size; 168 167 } 169 168 … … 178 177 cfg->fat_sector_count, cfg->cluster_size / cfg->sector_size); 179 178 179 /* Subtract the FAT and bootsector space from the total 180 * number of available clusters. 181 */ 182 cfg->total_clusters -= div_round_up((cfg->data_start_sector - 183 FAT_SECTOR_START) * cfg->sector_size, 184 cfg->cluster_size); 185 180 186 /* Compute the bitmap size */ 181 187 cfg->bitmap_size = div_round_up(cfg->total_clusters, 8); … … 191 197 cfg->allocated_clusters += div_round_up(sizeof(upcase_table), 192 198 cfg->cluster_size); 193 194 /* Subtract the FAT and bootsector space from the total195 * number of available clusters.196 */197 cfg->total_clusters -= div_round_up(cfg->data_start_sector *198 cfg->sector_size, cfg->cluster_size);199 199 200 200 /* Will be set later */
Note:
See TracChangeset
for help on using the changeset viewer.