Changeset 0dd2717 in mainline for uspace/app/mkminix/mkminix.c
- Timestamp:
- 2011-03-11T18:20:23Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b84175a
- Parents:
- d3ce9515
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkminix/mkminix.c
rd3ce9515 r0dd2717 324 324 unsigned long itable_size; 325 325 326 itable_off = FIRST_ZONE(sb->block_size); 327 itable_off += sb->zbmap_blocks + sb->ibmap_blocks; 326 itable_off = sb->zbmap_blocks + sb->ibmap_blocks; 328 327 329 328 /*Convert to 1K offset*/ 330 itable_off = CONVERT_1K_OFF(itable_off, sb->block_size) ;329 itable_off = CONVERT_1K_OFF(itable_off, sb->block_size) + 2; 331 330 itable_size = CONVERT_1K_OFF(sb->itable_size, sb->block_size); 332 331 … … 388 387 389 388 /*Compute offset of the first inode table block*/ 390 itable_off = FIRST_ZONE(sb->block_size); 391 itable_off += sb->zbmap_blocks + sb->ibmap_blocks; 389 itable_off = sb->zbmap_blocks + sb->ibmap_blocks; 392 390 393 391 /*Convert to 1K block offset*/ 394 itable_off = CONVERT_1K_OFF(itable_off, sb->block_size) ;392 itable_off = CONVERT_1K_OFF(itable_off, sb->block_size) + 2; 395 393 396 394 const time_t sec = time(NULL); … … 582 580 zbmap_buf8 = (uint8_t *) zbmap_buf; 583 581 584 int start_block = FIRST_ZONE(sb->block_size);582 int start_block = 2; 585 583 586 584 for (i = 0; i < ibmap_nblocks; ++i) { … … 590 588 } 591 589 592 start_block = FIRST_ZONE(sb->block_size)+ ibmap_nblocks;590 start_block = 2 + ibmap_nblocks; 593 591 594 592 for (i = 0; i < zbmap_nblocks; ++i) {
Note:
See TracChangeset
for help on using the changeset viewer.