fstest: CrashMonkey 'hard link' tests ported to xfstest
authorJayashree <jaya@cs.utexas.edu>
Tue, 20 Nov 2018 23:51:04 +0000 (17:51 -0600)
committerEryu Guan <guaneryu@gmail.com>
Fri, 30 Nov 2018 08:57:14 +0000 (16:57 +0800)
commitfd532405deaf4efdb0cf98bb506fd7254c886b43
tree30804a8e35f524ce009f423eb0f4682425b5dc04
parent8f399f01d1e42dc250f5a63b11e434aaa832d419
fstest: CrashMonkey 'hard link' tests ported to xfstest

This patch aims to add more tests to the xfstest suite to check
whether the target file system recovers correctly after a crash.
These test cases are generated by CrashMonkey, a
crash-consistency testing framework built at the SASLab at UT Austin.

This patch batches 37 crash-consistency tests into a xfstest test,
each of which checks the hard link behavior under different scenarios.
This test creates hard-links between files in the same directory or
across directories, while allowing fsync of either the files involved,
their parent directories, or unrelated sibling files. After each sub
test, the metadata of the persisted file is checked for the correct
link count. Additionally, each sub test is followed by fsck to check
for inconsistencies. The tests run on a 256MB file system, and
the working directory is cleaned up after every sub test.

Signed-off-by: Jayashree Mohan <jaya@cs.utexas.edu>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/520 [new file with mode: 0755]
tests/generic/520.out [new file with mode: 0644]
tests/generic/group