ChangeLog, inode.c:
  Fix bug; the current inode number wasn't being set by the
  goto_blockgroup function.
bmove.c, ext2fs.h:
  Added new argument to bmove, so that the caller can pass the
  allocation bitmap.  If not specified, the allocation bitmap defaults
  to fs->block_map.

diff --git a/lib/ext2fs/inode.c b/lib/ext2fs/inode.c
index be882ad..3806ac6 100644
--- a/lib/ext2fs/inode.c
+++ b/lib/ext2fs/inode.c
@@ -199,6 +199,7 @@
 {
 	scan->current_group = group - 1;
 	scan->groups_left = scan->fs->group_desc_count - group;
+	scan->current_inode = group * EXT2_INODES_PER_GROUP(scan->fs->super);
 	return get_next_blockgroup(scan);
 }