e2fsprogs/debugfs
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
debug_cmds.ct debugfs: Add new debugfs command punch (aka truncate) 2010-07-22 09:39:04 -04:00
debugfs.8.in debugfs: document htree-related commands in man page 2011-05-14 23:37:22 -04:00
debugfs.c misc: clean up compiler warnings 2011-06-11 10:58:25 -04:00
debugfs.h misc: clean up compiler warnings 2011-06-11 10:58:25 -04:00
dump.c misc: clean up compiler warnings 2011-06-11 10:58:25 -04:00
htree.c debugfs: remove unused htree_dump "-l" argument 2011-05-14 23:37:22 -04:00
icheck.c debugfs: fix icheck finding blocks used for xattrs 2011-06-11 11:29:54 -04: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
logdump.c ext2fs: Handle internal journal over 2^32 bytes 2011-06-11 12:17:29 -04:00
ls.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
lsdel.c debugfs: Convert to support 64-bit filesystems 2009-09-07 22:46:17 -04:00
ncheck.c debugfs: Fix miscellaneous gcc -Wall warnings 2009-07-11 23:23:16 -04:00
set_fields.c Merge branch 'maint' into next 2011-03-18 16:44:37 -04:00
unused.c debugfs: Convert to support 64-bit filesystems 2009-09-07 22:46:17 -04:00
util.c debugfs: Convert to support 64-bit filesystems 2009-09-07 22:46:17 -04:00