Changeset 1b20da0 in mainline for uspace/app/mkmfs/mkmfs.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkmfs/mkmfs.c
rdf6ded8 r1b20da0 167 167 } 168 168 169 if (sb.block_size < MFS_MIN_BLOCKSIZE || 169 if (sb.block_size < MFS_MIN_BLOCKSIZE || 170 170 sb.block_size > MFS_MAX_BLOCKSIZE) { 171 171 printf(NAME ":Error! Invalid block size.\n"); … … 175 175 printf(NAME ":Error! Invalid block size.\n"); 176 176 exit(0); 177 } else if (sb.block_size > MFS_BLOCKSIZE && 177 } else if (sb.block_size > MFS_BLOCKSIZE && 178 178 sb.fs_version != 3) { 179 179 printf(NAME ":Error! Block size > 1024 is " … … 470 470 if (sb->fs_version == 1) { 471 471 /* Valid only for MFS V1 */ 472 sb->n_zones = sb->dev_nblocks > UINT16_MAX ? 472 sb->n_zones = sb->dev_nblocks > UINT16_MAX ? 473 473 UINT16_MAX : sb->dev_nblocks; 474 474 ind = MFS_BLOCKSIZE / sizeof(uint16_t); … … 524 524 525 525 /* Compute first data zone position */ 526 sb->first_data_zone = 2 + sb->itable_size + 526 sb->first_data_zone = 2 + sb->itable_size + 527 527 sb->zbmap_blocks + sb->ibmap_blocks; 528 528
Note:
See TracChangeset
for help on using the changeset viewer.