ext4: test for DAX + journaling corruption
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Thu, 4 Jan 2018 08:11:20 +0000 (01:11 -0700)
committerEryu Guan <eguan@redhat.com>
Fri, 5 Jan 2018 18:09:02 +0000 (02:09 +0800)
commit750a24e99e48e14fc946d50d55e897237aba961e
treef04695e1cb0f0b0f824b49e8ad25a1a10a677327
parent4515048910312573d8989ba64ee5cac76138e8f8
ext4: test for DAX + journaling corruption

Add a regression test for the following kernel commit:

  ext4: prevent data corruption with journaling + DAX

The test passes if either we successfully compare the data between
the mmap with journaling turned on and the one with journaling
turned off, or if we fail the chattr command to turn on or off
journaling.  The latter is how we prevent this issue in the kernel.

[eguan: add 'dax' group]

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
.gitignore
src/Makefile
src/t_ext4_dax_journal_corruption.c [new file with mode: 0644]
tests/ext4/030 [new file with mode: 0755]
tests/ext4/030.out [new file with mode: 0644]
tests/ext4/group