Whamcloud - gitweb
tests: test writing and recovering checksum-free 32/64bit journals
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Sep 2014 23:13:01 +0000 (16:13 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Sep 2014 20:52:39 +0000 (16:52 -0400)
commit9ce517d43eaa05a6282fa35582cb284a529f0da0
treeb4574cefd13a30074192edf7ec1ef68525718afc
parent463eb92131d9bab6ca48820a1bd47352117db360
tests: test writing and recovering checksum-free 32/64bit journals

Simple tests for the journal transaction creation code.   We test
writing (bad) block bitmaps out through the journal and replaying them
via fsck, with a few twists:

(a) All bitmaps are committed (fs errors reported)
(b) All the bitmap blocks are revoked (no errors)
(c) The transaction is never committed (no errors)
(d) Same as (a), but debugfs gets to do the replay.

We also test:

(a) writing and replaying transactions with multiple
    descriptor blocks
(b) same, but with multiple revoke blocks.
(c) adding the 64bit flag to a journal

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
25 files changed:
tests/defaults/j_script [new file with mode: 0644]
tests/j_long_revoke_trans/expect [new file with mode: 0644]
tests/j_long_revoke_trans/name [new file with mode: 0644]
tests/j_long_revoke_trans/script [new file with mode: 0644]
tests/j_long_trans/expect [new file with mode: 0644]
tests/j_long_trans/name [new file with mode: 0644]
tests/j_long_trans/script [new file with mode: 0644]
tests/j_short_revoke_trans/expect [new file with mode: 0644]
tests/j_short_revoke_trans/name [new file with mode: 0644]
tests/j_short_revoke_trans/script [new file with mode: 0644]
tests/j_short_trans/expect [new file with mode: 0644]
tests/j_short_trans/name [new file with mode: 0644]
tests/j_short_trans/script [new file with mode: 0644]
tests/j_short_trans_64bit/expect [new file with mode: 0644]
tests/j_short_trans_64bit/name [new file with mode: 0644]
tests/j_short_trans_64bit/script [new file with mode: 0644]
tests/j_short_trans_open_recover/expect [new file with mode: 0644]
tests/j_short_trans_open_recover/name [new file with mode: 0644]
tests/j_short_trans_open_recover/script [new file with mode: 0644]
tests/j_short_trans_recover/expect [new file with mode: 0644]
tests/j_short_trans_recover/name [new file with mode: 0644]
tests/j_short_trans_recover/script [new file with mode: 0644]
tests/j_short_uncommitted_trans/expect [new file with mode: 0644]
tests/j_short_uncommitted_trans/name [new file with mode: 0644]
tests/j_short_uncommitted_trans/script [new file with mode: 0644]