e2fsprogs/lib/ext2fs
Frederic Bohe b526459399 Fix inode table allocation with flexbg
Disordered inode tables may appear when inode_blocks_per_group is lesser
or equal to the number of groups in a flex group.

This bug can be reproduced with:
	mkfs.ext4 -t ext4dev -G512 70G

In that case, you can see with dump2fs that inode tables for groups 510
and 511 are placed just after group 51's inode table instead of being
placed after group 509's inode table.

Signed-off-by: Frederic Bohe <frederic.bohe@bull.net>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-07-17 11:11:48 -04:00
..
tdb Update to latest samba tdb library before LGPLv3 change 2008-02-17 17:35:54 -05:00
Makefile.in Update dependencies in the Makefile for lib/ext2fs 2008-07-10 17:25:33 -04:00
Makefile.pq Many files: 1997-11-14 05:23:04 +00:00
alloc.c libext2fs: Add callback functions for _alloc_block() and _block_alloc_stats() 2008-06-02 18:52:12 -04:00
alloc_sb.c Make ext2fs_check_desc() more stringent to force use of backup superbocks 2008-07-10 17:25:33 -04:00
alloc_stats.c libext2fs: Add callback functions for _alloc_block() and _block_alloc_stats() 2008-06-02 18:52:12 -04:00
alloc_tables.c Fix inode table allocation with flexbg 2008-07-17 11:11:48 -04:00
badblocks.c libext2fs: Add checks to prevent integer overflows passed to malloc() 2007-12-05 21:01:35 -05:00
bb_compat.c Many files: 2001-05-14 11:35:52 +00:00
bb_inode.c Add support for the HUGE_FILE feature 2008-04-17 16:38:13 -04:00
bitmaps.c libext2fs: 32-bit bitmap refactorization, part 3 2007-07-23 04:32:48 -04:00
bitops.c libext2fs: 32-bit bitmap refactorization, part 1 2007-07-22 22:59:50 -04:00
bitops.h Re-enable byte-swapping functions for use by journal checksums 2008-06-06 23:38:38 -04:00
block.c Wire ext2fs_block_iterate2() to use ext2fs_extent_set_bmap() 2008-06-02 18:52:12 -04:00
bmap.c Wire ext2fs_bmap2() to use ext2fs_extent_set_bmap() 2008-06-02 18:52:12 -04:00
bmove.c libext2fs: Add checks to prevent integer overflows passed to malloc() 2007-12-05 21:01:35 -05:00
brel.h Many files: 2001-01-11 04:54:39 +00:00
brel_ma.c libext2fs: Add checks to prevent integer overflows passed to malloc() 2007-12-05 21:01:35 -05:00
check_desc.c Make ext2fs_check_desc() more stringent to force use of backup superbocks 2008-07-10 17:25:33 -04:00
closefs.c Add comments documenting ext2fs_[reserve_]super_and_bgd_loc() 2008-04-20 19:22:49 -04:00
crc16.c Add initial checksum support for the gdt_checksum/uninit_group feature 2008-03-20 15:32:11 -04:00
crc16.h Add initial checksum support for the gdt_checksum/uninit_group feature 2008-03-20 15:32:11 -04:00
csum.c libext2fs: Don't check the group checksum when !GDT_CSUM 2008-07-13 19:03:59 -04:00
dblist.c Fix miscellaneous gcc -Wall warnings 2008-03-17 23:17:13 -04:00
dblist_dir.c ext2fs_dblist_dir_iterate: Fix ABORT propagation logic 2007-09-23 11:39:24 -04:00
dir_iterate.c libext2: Add BLOCK_FLAG_READ_ONLY flag to ext2fs_block_iterate2() 2008-02-10 08:04:09 -05:00
dirblock.c Clean up libext2fs by byte swapping iff WORDS_BIGENDIAN 2007-08-11 01:59:13 -04:00
dirhash.c Add directory hashed signed/unsigned hint to superblock 2006-11-11 22:32:35 -05:00
dosio.c ChangeLog, wordwrap.pl: 2001-06-01 23:49:46 +00:00
dosio.h Many files: 1997-08-11 20:29:22 +00:00
dupfs.c libext2fs: Add checks to prevent integer overflows passed to malloc() 2007-12-05 21:01:35 -05:00
e2image.h Many files: 2001-05-03 04:02:29 +00:00
expanddir.c Add support for the HUGE_FILE feature 2008-04-17 16:38:13 -04:00
ext2_err.et.in libext2fs: Teach extent.c how to split nodes 2008-06-02 10:13:59 -04:00
ext2_ext_attr.h Fix gcc -Wall complaints in libext2fs 2006-11-14 23:14:12 -05:00
ext2_fs.h resize2fs: Add support to use the ext4 online resize ioctl's 2008-06-07 13:13:16 -04:00
ext2_io.h libext2fs: Add undo I/O manager 2008-04-27 19:40:46 -04:00
ext2_types.h.in Fix ext2fs_swap{16,32,64} for external applications on big-endian machines 2008-06-07 08:55:21 -04:00
ext2fs.h mke2fs,tune2fs: Enable huge_file, dir_nlink, and extra_isize features 2008-07-10 12:06:31 -04:00
ext2fs.pc.in Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00
ext2fsP.h Add support to e2fsck to reindex directories to use hash trees. 2002-07-20 00:28:07 -04:00
ext3_extents.h Remove vararg macro which causes portability problems from ext3_extent.h 2008-07-13 16:06:57 -04:00
ext_attr.c Improve support for in-inode EA's 2008-02-18 21:20:26 -05:00
extent.c Remove gcc-specific varargs macro in extent.c 2008-07-13 16:06:57 -04:00
extent_dbg.ct libext2fs: add new function ext2fs_extent_set_bmap() 2008-06-02 18:52:05 -04:00
fileio.c libext2fs: Add checks to prevent integer overflows passed to malloc() 2007-12-05 21:01:35 -05:00
finddev.c finddev.c (scan_dir): Fix memory leak; we weren't calling 2001-07-29 12:01:09 -04:00
flushb.c Re-add FreeBSD support. 2003-12-28 18:21:26 +01:00
freefs.c libext2fs: 32-bit bitmap refactorization, part 1 2007-07-22 22:59:50 -04:00
gen_bitmap.c libext2fs: 32-bit bitmap refactorization, part 3 2007-07-23 04:32:48 -04:00
get_pathname.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
getsectsize.c getsectsize.c (BLKSSZGET): Clean up test for when to manually 2005-06-19 23:11:09 -04:00
getsize.c ext2fs_get_device_size(): Fix potential fd descriptor leak in an error case 2007-04-18 21:37:42 -04:00
i_block.c Add support for the HUGE_FILE feature 2008-04-17 16:38:13 -04:00
icount.c libext2fs: Make icount use a 32-bit counter 2008-03-15 01:39:19 -04:00
imager.c libext2fs: 32-bit bitmap refactorization, part 3 2007-07-23 04:32:48 -04:00
ind_block.c Fix miscellaneous gcc -Wall warnings 2008-03-17 23:17:13 -04:00
initialize.c libext2fs: fix potential memory leak in ext2fs_initialize() 2008-07-11 14:45:58 -04:00
inline.c Many files: 2001-05-14 11:35:52 +00:00
inode.c ext2fs_read_inode: Check the validity of the inode number earlier 2008-07-15 11:10:19 -04:00
inode_io.c Add {read,write}_blk64 to inode_io.c 2008-03-13 13:47:05 -04:00
io_manager.c Add support for passing options to the io layer using the URL syntax. For 2004-11-30 14:07:11 -05:00
irel.h Many files: 2001-01-11 04:54:39 +00:00
irel_ma.c libext2fs: Add checks to prevent integer overflows passed to malloc() 2007-12-05 21:01:35 -05:00
ismounted.c Merge branch 'maint' into next 2007-12-09 17:03:01 -05:00
jfs_compat.h e2fsck: Add support to check journal checksums 2008-06-06 23:38:38 -04:00
jfs_dat.h ChangeLog, Makefile.in, ext2_err.et.in, ext2fs.h, jfs_dat.h, mkjournal.c: 2000-10-24 18:33:16 +00:00
jfs_user.h Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the 2001-12-23 19:33:51 -05:00
kernel-jbd.h e2fsck: Add support to check journal checksums 2008-06-06 23:38:38 -04:00
kernel-list.h Lots of small random portability fixes to make e2fsprogs build 2002-02-12 02:34:44 -05:00
link.c link.c (ext2fs_link): When adding a new link to a directory, 2002-07-29 19:26:33 -04:00
llseek.c Use lseek() instead of llseek() of sizeof(long) == sizeof(long long) 2008-01-27 00:35:32 -05:00
lookup.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
mkdir.c Add support for the HUGE_FILE feature 2008-04-17 16:38:13 -04:00
mkjournal.c ext2fs_zero_blocks: Avoid clearing more blocks than requested 2008-06-17 01:14:30 -04:00
namei.c Fix gcc -Wall complaints in libext2fs 2006-11-14 23:14:12 -05:00
native.c ChangeLog, Makefile.in, swapfs.c, unix.c: 2001-06-11 07:00:04 +00:00
newdir.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
nt_io.c Many files: 2001-05-14 11:35:52 +00:00
openfs.c libext2fs: Add stricter/earlier tests for blocksize in ext2fs_open() 2008-07-11 17:45:07 -04:00
read_bb.c Add support for the HUGE_FILE feature 2008-04-17 16:38:13 -04:00
read_bb_file.c Fix various gcc -Wall complaints. 2005-12-10 21:50:30 -05:00
res_gdt.c Add support for the HUGE_FILE feature 2008-04-17 16:38:13 -04:00
rw_bitmaps.c Remove LAZY_BG feature 2008-04-20 23:33:34 -04:00
sparse.c Add support for on-line resizing ala the resize inode. This patch 2004-12-15 14:39:16 -05:00
swapfs.c libext2fs: Fix build failure on powerpc in ext2fs_swap_inode_full() 2008-06-06 23:33:28 -04:00
tdb.c Define _XOPEN_SOURCE to 600 consistently for Solaris C99 support 2008-07-13 16:06:57 -04:00
tdb.h Update to latest samba tdb library before LGPLv3 change 2008-02-17 17:35:54 -05:00
tdbtool.c Add tdb from Samba into libext2fs library. 2007-04-04 21:26:37 -04:00
test_io.c Add 64-bit support to the test_io manager 2008-05-24 19:17:01 -04:00
tst_badblocks.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
tst_bitops.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -04:00
tst_byteswap.c Fix various gcc -Wall complaints. 2002-03-07 23:52:56 -05:00
tst_csum.c Clean up some trivial build warnings 2008-07-06 18:36:56 -04:00
tst_getsectsize.c mke2fs.c (PRS, set_fs_defaults): If the sector size of the 2003-05-21 17:28:29 -04:00
tst_getsize.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
tst_iscan.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
tst_super_size.c Add test to make sure the ext2 superblock structure is 1024 bytes 2007-05-31 12:39:02 -04:00
tst_types.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -04:00
undo_io.c Fix gcc -Wall warnings in libext2fs 2008-06-07 11:53:56 -04:00
unix_io.c Add {read,write}_blk64 to unix_io.c 2008-03-13 13:46:58 -04:00
unlink.c libext2fs: Fix a corner case bug in ext2fs_unlink 2007-12-02 05:25:30 -05:00
valid_blk.c valid_blk.c (ext2fs_inode_has_valid_blocks): Fix bug which 2002-08-20 01:14:30 -04:00
version.c Stop after the second '.' when parsing version numbers 2007-07-08 12:37:13 -04:00
write_bb_file.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00