Changeset 557e5b13 in mainline
- Timestamp:
- 2012-02-24T21:50:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 89a0a827
- Parents:
- 69f9cf5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkexfat/mkexfat.c
r69f9cf5 r557e5b13 84 84 unsigned long data_start_sector; 85 85 unsigned long rootdir_cluster; 86 unsigned long upcase_table_cluster; 86 87 unsigned long total_clusters; 87 88 unsigned long allocated_clusters; … … 216 217 div_round_up(cfg->data_start_sector, cfg->cluster_size)); 217 218 218 mbs->rootdir_cluster = 0;219 mbs->rootdir_cluster = host2uint32_t_le(cfg->rootdir_cluster); 219 220 mbs->volume_serial = 0; 220 221 mbs->version.major = 1; … … 573 574 cfg_print_info(&cfg); 574 575 575 rc = bootsec_write(service_id, &cfg);576 if (rc != EOK) {577 printf(NAME ": Error, failed to write the VBR to disk\n");578 return 2;579 }580 581 576 rc = fat_initialize(service_id, &cfg); 582 577 if (rc != EOK) { 583 578 printf(NAME ": Error, failed to write the FAT to disk\n"); 584 return 2;585 }586 587 rc = bitmap_write(service_id, &cfg);588 if (rc != EOK) {589 printf(NAME ": Error, failed to write the allocation" \590 " bitmap to disk.\n");591 579 return 2; 592 580 } … … 602 590 next_cls = FIRST_FREE_CLUSTER + 603 591 div_round_up(cfg.bitmap_size, cfg.cluster_size); 592 cfg.upcase_table_cluster = next_cls; 604 593 605 594 /* Allocate clusters for the upcase table */ … … 621 610 } 622 611 612 rc = bitmap_write(service_id, &cfg); 613 if (rc != EOK) { 614 printf(NAME ": Error, failed to write the allocation" \ 615 " bitmap to disk.\n"); 616 return 2; 617 } 618 619 rc = bootsec_write(service_id, &cfg); 620 if (rc != EOK) { 621 printf(NAME ": Error, failed to write the VBR to disk\n"); 622 return 2; 623 } 624 623 625 return 0; 624 626 }
Note:
See TracChangeset
for help on using the changeset viewer.