| commit | 2ecc6fefa176f3203598225eb9ae2f61c3ae9c10 | [log] [tgz] |
|---|---|---|
| author | Theodore Ts'o <tytso@mit.edu> | Tue Apr 29 17:57:00 1997 +0000 |
| committer | Theodore Ts'o <tytso@mit.edu> | Tue Apr 29 17:57:00 1997 +0000 |
| tree | b91df3cbf475b07c384dfb8717b3f9fb2b826190 | |
| parent | 521e36857227b21e7ab47b0a97f788d2af9f9717 [diff] [blame] |
Many files: Checked in e2fsprogs 1.09
diff --git a/lib/ext2fs/alloc_tables.c b/lib/ext2fs/alloc_tables.c index 4bfc91d..65c129f 100644 --- a/lib/ext2fs/alloc_tables.c +++ b/lib/ext2fs/alloc_tables.c
@@ -35,6 +35,9 @@ group_blk = fs->super->s_first_data_block; for (i = 0; i < fs->group_desc_count; i++) { last_blk = group_blk + fs->super->s_blocks_per_group; + if (last_blk >= fs->super->s_blocks_count) + last_blk = fs->super->s_blocks_count - 1; + /* * Allocate the inode table */