Update of /cvsroot/ext2resize/ext2resize/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9415
Modified Files:
ext2_block_relocator.c
Log Message:
some s/%d/%lu/ and tidy
Index: ext2_block_relocator.c
===================================================================
RCS file: /cvsroot/ext2resize/ext2resize/src/ext2_block_relocator.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** ext2_block_relocator.c 14 Feb 2006 07:02:06 -0000 1.21
--- ext2_block_relocator.c 17 Feb 2006 05:27:16 -0000 1.22
***************
*** 105,109 ****
}
! struct ext2_block_entry *findit(struct ext2_block_relocator_state *state, blk_t block)
{
int min_e;
--- 105,110 ----
}
! struct ext2_block_entry *findit(struct ext2_block_relocator_state *state,
! blk_t block)
{
int min_e;
***************
*** 645,650 ****
state->new_alloc_offset = newitoffset + fs->inodeblocks;
if (fs->flags & FL_DEBUG)
! printf("moving data (oldgdblocks %d+%d, newgdblocks %d, "
! "olditoffset %d, newitoffset %d, new_alloc_offset %d)\n",
fs->gdblocks, fs->resgdblocks, fs->newgdblocks,
fs->itoffset, newitoffset, state->new_alloc_offset);
--- 646,651 ----
state->new_alloc_offset = newitoffset + fs->inodeblocks;
if (fs->flags & FL_DEBUG)
! printf("moving data (oldgdblocks %lu+%lu, newgdblocks %lu, "
! "olditoffset %d, newitoffset %d, new_alloc_offset %lu)\n",
fs->gdblocks, fs->resgdblocks, fs->newgdblocks,
fs->itoffset, newitoffset, state->new_alloc_offset);
***************
*** 786,789 ****
--- 787,791 ----
if (inode->i_mtime)
ext2_write_inode(fs, EXT2_RESIZE_INO, inode);
+
return ext2_block_relocator_flush(fs, state);
}
***************
*** 915,919 ****
state.new_alloc_offset = 0;
state.alloc_entries = (ext2_relocator_pool_size << 10) /
! sizeof(struct ext2_block_entry);
state.used_entries = 0;
state.resolved_entries = 0;
--- 917,921 ----
state.new_alloc_offset = 0;
state.alloc_entries = (ext2_relocator_pool_size << 10) /
! sizeof(struct ext2_block_entry);
state.used_entries = 0;
state.resolved_entries = 0;
|