]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - tests/f_mmp/script
e2fsck: regression tests for INCOMPAT_MMP feature
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 24 Sep 2011 18:13:27 +0000 (14:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 25 Sep 2011 05:55:28 +0000 (01:55 -0400)
commitd9c60e04b3b18b13d7707f1876ac7bce89df10e9
tree0cfb6d3e9506d5ef45b41976ffcbfe0bb792e453
parent0f5eba7501f467f757792ee449d16c9259b994fd
e2fsck: regression tests for INCOMPAT_MMP feature

Add tests for the MMP feature - creating a filesystem with mke2fs
and MMP enabled, enable/disable MMP with tune2fs, disabling the
e2fsck MMP flag with tune2fs after a failed e2fsck, and e2fsck
checking and fixing a corrupt MMP block.

The MMP tests need to be run from a real disk, not tmpfs, because
tmpfs doesn't support O_DIRECT reads, which MMP uses to ensure
that reads from the MMP block are not filled from the page cache.
Using a local disk does not slow down the tests noticably, since
they wait to detect if the MMP block is being modified.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
13 files changed:
misc/tune2fs.8.in
tests/f_mmp/name [new file with mode: 0644]
tests/f_mmp/script [new file with mode: 0644]
tests/f_mmp_garbage/expect.1 [new file with mode: 0644]
tests/f_mmp_garbage/expect.2 [new file with mode: 0644]
tests/f_mmp_garbage/name [new file with mode: 0644]
tests/f_mmp_garbage/script [new file with mode: 0644]
tests/m_mmp/expect.1 [new file with mode: 0644]
tests/m_mmp/script [new file with mode: 0644]
tests/t_mmp_1on/name [new file with mode: 0644]
tests/t_mmp_1on/script [new file with mode: 0644]
tests/t_mmp_2off/name [new file with mode: 0644]
tests/t_mmp_2off/script [new file with mode: 0644]