Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/util-linux/mkfs_ext2.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/util-linux/mkfs_ext2.c
r3232 r3621 117 117 uint32_t i; 118 118 119 //bb_ info_msg("ALLOC: [%u][%u][%u]: [%u-%u]:=[%x],[%x]", blocksize, start, end, start/8, blocksize - end/8 - 1, (1 << (start & 7)) - 1, (uint8_t)(0xFF00 >> (end & 7)));119 //bb_error_msg("ALLOC: [%u][%u][%u]: [%u-%u]:=[%x],[%x]", blocksize, start, end, start/8, blocksize - end/8 - 1, (1 << (start & 7)) - 1, (uint8_t)(0xFF00 >> (end & 7))); 120 120 memset(bitmap, 0, blocksize); 121 121 i = start / 8; … … 152 152 static void PUT(uint64_t off, void *buf, uint32_t size) 153 153 { 154 // bb_info_msg("PUT[%llu]:[%u]", off, size);154 //bb_error_msg("PUT[%llu]:[%u]", off, size); 155 155 xlseek(fd, off, SEEK_SET); 156 156 xwrite(fd, buf, size); … … 413 413 // transition (at 16M). 414 414 if (remainder && (remainder < overhead + 50)) { 415 //bb_ info_msg("CHOP[%u]", remainder);415 //bb_error_msg("CHOP[%u]", remainder); 416 416 nblocks -= remainder; 417 417 goto retry; … … 569 569 570 570 // mark preallocated blocks as allocated 571 //bb_ info_msg("ALLOC: [%u][%u][%u]", blocksize, overhead, blocks_per_group - (free_blocks + overhead));571 //bb_error_msg("ALLOC: [%u][%u][%u]", blocksize, overhead, blocks_per_group - (free_blocks + overhead)); 572 572 allocate(buf, blocksize, 573 573 // reserve "overhead" blocks … … 648 648 for (i = 0; i < lost_and_found_blocks; ++i) 649 649 STORE_LE(inode->i_block[i], i + n); // use next block 650 //bb_ info_msg("LAST BLOCK USED[%u]", i + n);650 //bb_error_msg("LAST BLOCK USED[%u]", i + n); 651 651 PUT(((uint64_t)FETCH_LE32(gd[0].bg_inode_table) * blocksize) + (EXT2_GOOD_OLD_FIRST_INO-1) * inodesize, 652 652 buf, inodesize);
Note:
See TracChangeset
for help on using the changeset viewer.