Changeset 69f9cf5 in mainline
- Timestamp:
- 2012-02-24T21:39:27Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 557e5b13
- Parents:
- 78de7be2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkexfat/mkexfat.c
r78de7be2 r69f9cf5 378 378 { 379 379 int rc; 380 aoff64_t fat_sec = cur_cls / sizeof(uint32_t) + FAT_SECTOR_START;381 380 unsigned const fat_entries = cfg->sector_size / sizeof(uint32_t); 381 aoff64_t fat_sec = cur_cls / fat_entries + FAT_SECTOR_START; 382 382 uint32_t *fat; 383 383 … … 611 611 } 612 612 613 next_cls += div_round_up(sizeof(upcase_table), cfg.cluster_size); 614 cfg.rootdir_cluster = next_cls; 615 616 /* Allocate a cluster for the root directory entry */ 617 rc = fat_allocate_clusters(service_id, &cfg, next_cls, 1); 618 if (rc != EOK) { 619 printf(NAME ": Error, failed to allocate cluster for the root dentry.\n"); 620 return 2; 621 } 622 613 623 return 0; 614 624 }
Note:
See TracChangeset
for help on using the changeset viewer.