Update of /cvsroot/ext2resize/ext2resize/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32637/src
Modified Files:
ext2_meta.c
Log Message:
Bug fix: use correct new IT offset.
Index: ext2_meta.c
===================================================================
RCS file: /cvsroot/ext2resize/ext2resize/src/ext2_meta.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** ext2_meta.c 30 Sep 2004 14:01:41 -0000 1.13
--- ext2_meta.c 17 Feb 2006 12:04:09 -0000 1.14
***************
*** 110,113 ****
--- 110,120 ----
int diff;
+ has_sb = ext2_bg_has_super(fs, group);
+
+ if (!has_sb)
+ new_itoffset = 2;
+ else
+ new_itoffset = fs->newgdblocks + 3;
+
diff = start + new_itoffset - fs->gd[group].bg_inode_table;
old_itend =fs->gd[group].bg_inode_table +fs->inodeblocks -start;
***************
*** 117,122 ****
bpg = fs->sb.s_blocks_count - start;
- has_sb = ext2_bg_has_super(fs, group);
-
bb = fs->gd[group].bg_block_bitmap - start;
ib = fs->gd[group].bg_inode_bitmap - start;
--- 124,127 ----
|