Changeset 7c3fb9b in mainline for uspace/app/mkexfat/mkexfat.c
- Timestamp:
- 2018-05-17T08:29:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkexfat/mkexfat.c
rfac0ac7 r7c3fb9b 158 158 cfg->cluster_size = DEFAULT_CLUSTER_SIZE; 159 159 160 /* Compute the required cluster size to index 160 /* 161 * Compute the required cluster size to index 161 162 * the entire storage device and to keep the FAT 162 163 * size less or equal to 64 Mb. … … 179 180 cfg->fat_sector_count, cfg->cluster_size / cfg->sector_size); 180 181 181 /* Subtract the FAT space from the total 182 /* 183 * Subtract the FAT space from the total 182 184 * number of available clusters. 183 185 */ … … 369 371 } 370 372 371 /* The OEM record is not yet used 373 /* 374 * The OEM record is not yet used 372 375 * by the official exFAT implementation, we'll fill 373 376 * it with zeroes. … … 467 470 468 471 if (cur_cls == fat_entries) { 469 /* This sector is full, there are no more free entries, 472 /* 473 * This sector is full, there are no more free entries, 470 474 * commit the changes to disk and restart from the next 471 475 * sector. … … 477 481 goto loop; 478 482 } else if (ncls == 1) { 479 /* This is the last cluster of this chain, mark it 483 /* 484 * This is the last cluster of this chain, mark it 480 485 * with EOF. 481 486 */ … … 571 576 572 577 if (table_size < cfg->sector_size) { 573 /* Reset the content of the unused part 578 /* 579 * Reset the content of the unused part 574 580 * of the last sector. 575 581 */ … … 656 662 goto exit; 657 663 658 /* Fill the content of the sectors not used by the 664 /* 665 * Fill the content of the sectors not used by the 659 666 * root directory with zeroes. 660 667 */
Note:
See TracChangeset
for help on using the changeset viewer.