aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Zwisler <ross.zwisler@linux.intel.com>2018-01-17 16:23:50 -0700
committerEryu Guan <eguan@redhat.com>2018-01-18 22:10:42 +0800
commit1ee97207dce2db8c36f592c6853d19a7c010e3d1 (patch)
treed032aff426dc899b3e0b5e377447868890b99467
parent67c2db9a18914c7247808969183ffb88471bbf22 (diff)
downloadxfstests-dev-1ee97207dce2db8c36f592c6853d19a7c010e3d1.tar.gz
shared/272: don't use data journaling with DAX
shared/272 fails with kernels v4.15-rc1 and beyond when you are mounted with DAX: shared/272 [failed, exit status 1] - output mismatch (see /root/project/xfstests/results//shared/272.out.bad) --- tests/shared/272.out 2015-12-05 13:12:17.038257578 -0700 +++ /root/project/xfstests/results//shared/272.out.bad 2018-01-17 15:37:18.581631116 -0700 @@ -1,3 +1,3 @@ QA output created by 272 Switch data journalling mode. Silence is golden. -Check filesystem +/usr/bin/chattr: Device or resource busy while setting flags on /mnt/xfstests_scratch/file.1 ... (Run 'diff -u tests/shared/272.out /root/project/xfstests/results//shared/272.out.bad' to see the entire diff) This is expected. The following kernel commit: commit e9072d859df3 ("ext4: prevent data corruption with journaling + DAX") makes "chattr +j", which is attempting to turn on data journaling, return -EBUSY if the ext4 DAX mount option is in use. This was done to prevent the data corruption shown in xfstest ext4/030, added by this xfstests commit: commit 750a24e99e48 ("ext4: test for DAX + journaling corruption") So, just skip shared/272 if the DAX mount option is in use. 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>
-rwxr-xr-xtests/shared/2721
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/shared/272 b/tests/shared/272
index 7023b65749..0c9763df00 100755
--- a/tests/shared/272
+++ b/tests/shared/272
@@ -83,6 +83,7 @@ chattr_opt: $chattr_opt" >>$seqres.full
_supported_fs ext3 ext4
_supported_os Linux
_require_scratch
+_exclude_scratch_mount_option dax
rm -f $seqres.full
_scratch_mkfs_sized $((64 * 1024 * 1024)) >> $seqres.full 2>&1