e2fsprogs/resize
Andreas Dilger 931b58e1cb ext2fs: Handle internal journal over 2^32 bytes
The write_journal_inode() code is only setting the low 32-bit i_size
for the journal size, even though it is possible to specify a journal
up to 10M blocks in size.  Trying to create a journal larger than 2GB
will succeed, but an immediate e2fsck would fail.  Store i_size_high
for the journal inode when creating it, and load it upon access.

Use s_jnl_blocks[15] to store the journal i_size_high backup.  This
field is currently unused, as EXT2_N_BLOCKS is 15, so it is using
s_jnl_blocks[0..14], and i_size is in s_jnl_blocks[16].

Rename the "size" argument "num_blocks" for the journal creation functions
to clarify this parameter is in units of filesystem blocks and not bytes.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2011-06-11 12:17:29 -04:00
..
Makefile.in Don't use in-tree header files if using system uuid or blkid libraries 2009-10-04 14:45:08 -04:00
Makefile.pq Many files: 1997-11-14 05:23:04 +00:00
extent.c Merge branch 'maint' into next 2010-07-19 02:37:41 -04:00
main.c Merge branch 'maint' into next 2010-12-20 10:06:58 -05:00
online.c Merge branch 'maint' into next 2010-12-13 09:16:09 -05:00
resize2fs.8.in resize2fs.8.in: Document that resize2fs -p only works on offline resizes 2010-11-26 19:35:30 -05:00
resize2fs.c ext2fs: Handle internal journal over 2^32 bytes 2011-06-11 12:17:29 -04:00
resize2fs.h resize2fs: Fix up to be 64-bit block number safe 2010-06-13 18:00:00 -04:00
sim_progress.c resize2fs: Fix potential memory corruption in ext2fs_progress_init() 2008-10-01 19:42:57 -04:00
test_extent.c resize2fs: Fix up to be 64-bit block number safe 2010-06-13 18:00:00 -04:00
test_extent.in Many files: 1997-06-17 03:52:12 +00:00