Changeset 08232ee in mainline for uspace/app
- Timestamp:
- 2010-01-09T21:52:07Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9245413
- Parents:
- dccf721
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkfat/mkfat.c
rdccf721 r08232ee 93 93 size_t block_size; 94 94 char *endptr; 95 bn_t dev_nblocks; 95 96 96 97 cfg.total_sectors = 0; … … 144 145 printf(NAME ": Error determining device block size.\n"); 145 146 return 2; 147 } 148 149 rc = block_get_nblocks(handle, &dev_nblocks); 150 if (rc != EOK) { 151 printf(NAME ": Warning, failed to obtain block device size.\n"); 152 } else { 153 printf(NAME ": Block device has %llu blocks.\n", dev_nblocks); 154 cfg.total_sectors = dev_nblocks; 146 155 } 147 156 … … 240 249 } 241 250 242 printf("fat_sectors=%d\n", par->fat_sectors);243 251 /* File allocation tables */ 244 252 for (i = 0; i < fat_count; ++i) {
Note:
See TracChangeset
for help on using the changeset viewer.