Whamcloud - gitweb
libext2fs: don't swap extent-based journal backup
authorEric Sandeen <sandeen@redhat.com>
Tue, 10 Nov 2009 20:45:44 +0000 (14:45 -0600)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 13 Nov 2009 00:55:53 +0000 (19:55 -0500)
commit6eb229dc5d212ac5897ff626b839318f4e0c57ca
treece18d2050334d4ea87fdba0f263bbd25a7e247bd
parentd93d5bbf605f81eb13fa71a55dfbed06f88fe930
libext2fs: don't swap extent-based journal backup

The f_illitable_flexbg test was failing on ppc, because
e2fsck_move_ext3_journal is doing a direct memcmp of i_block with
s_jnl_blocks, and failing.

This is because we don't swap extent data on read from disk; rather
we do it when we access the extents.  However, ext2fs_swap_super
was swapping s_jnl_blocks unconditionally, so these didn't match.

Looks like we need to treat s_jnl_blocks the same as i_block, and
swap it on access, not on read.  Except for the last i_size bit...

Reviewed-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/swapfs.c