generic: regression test for ext4 crash consistency bug
authorAmir Goldstein <amir73il@gmail.com>
Thu, 7 Sep 2017 10:03:11 +0000 (13:03 +0300)
committerEryu Guan <eguan@redhat.com>
Sat, 9 Sep 2017 10:15:53 +0000 (18:15 +0800)
commit88ef97bf667e6452e03e69c5712a3dbd6a99080a
tree127f0e83c9031cd04638a672bceea9eb6a5a6a9e
parentdd0b40b620e86e92861439ea5e76fe426fb59386
generic: regression test for ext4 crash consistency bug

This test is motivated by this inconsistency found in ext4 during random
crash consistency tests:

 *** fsck.ext4 output ***
 fsck from util-linux 2.27.1
 e2fsck 1.42.13 (17-May-2015)
 Pass 1: Checking inodes, blocks, and sizes
 Inode 12, end of extent exceeds allowed value
         (logical block 33, physical block 33817, len 7)
 Clear? no

 Inode 12, i_blocks is 240, should be 184.  Fix? no

This test uses device mapper flakey target to demonstrate the bug
found using device mapper log-writes target.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/501 [new file with mode: 0755]
tests/generic/501.out [new file with mode: 0644]
tests/generic/group