Whamcloud - gitweb
journal.c (clear_v2_journal_fields, e2fsck_journal_load): If the
authorTheodore Ts'o <tytso@mit.edu>
Sun, 7 Oct 2001 06:13:30 +0000 (02:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 7 Oct 2001 06:13:30 +0000 (02:13 -0400)
commit62e3e7fe4f32c2186e848f37b7f977835975413e
treef8a89e8f421f08b0277cfb2286e1ed1bbd59c832
parent773fd8a1d4202af708a37bdc7754134e6fdcfe22
journal.c (clear_v2_journal_fields, e2fsck_journal_load): If the
V2 fields are set on a V1 journal superblock, or an
internal V2 journal has s_nr_users is non-zero, clear the
entire journal superblock beyond the V1 superblock.  This
fixes botched V1->V2 updates.

problem.c, problem.h (PR_0_CLEAR_V2_JOURNAL): Add new problem code.

f_bad_local_jnl: New test which tests for a V2 journal with bad
fields caused by a botched V1->V2 upgrade.
e2fsck/ChangeLog
e2fsck/journal.c
e2fsck/problem.c
e2fsck/problem.h
tests/ChangeLog
tests/f_bad_local_jnl/expect.1 [new file with mode: 0644]
tests/f_bad_local_jnl/expect.2 [new file with mode: 0644]
tests/f_bad_local_jnl/image.gz [new file with mode: 0644]
tests/f_bad_local_jnl/name [new file with mode: 0644]