From fc3c28b307847a60ba9c463dc47a61c64c07debf Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 29 Aug 2017 21:40:50 -0700 Subject: [PATCH] xfs/{319,323}: don't checksum files after log recovery These two tests simulate log failure during a reflink operation. However, the contents of the target of the reflink operation depend on the block size, so we cannot hardcode md5 hashes in this test. Since the whole point of the test is to ensure that the the complex chain of transactions actually finishes no matter where the interruption, it is sufficient simply to run the usual end-of-test fsck to look for corrupt metadata. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- tests/xfs/319 | 5 ----- tests/xfs/319.out | 4 ---- tests/xfs/323 | 4 ---- tests/xfs/323.out | 3 --- 4 files changed, 16 deletions(-) diff --git a/tests/xfs/319 b/tests/xfs/319 index bbe21dfa..457f1815 100755 --- a/tests/xfs/319 +++ b/tests/xfs/319 @@ -82,11 +82,6 @@ touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch echo "Remount to replay log" _scratch_inject_logprint >> $seqres.full -echo "Check files" -md5sum $SCRATCH_MNT/file1 | _filter_scratch -md5sum $SCRATCH_MNT/file2 | _filter_scratch -md5sum $SCRATCH_MNT/file3 | _filter_scratch - echo "FS should be online, touch should succeed" touch $SCRATCH_MNT/goodfs diff --git a/tests/xfs/319.out b/tests/xfs/319.out index bccde848..160f5fd2 100644 --- a/tests/xfs/319.out +++ b/tests/xfs/319.out @@ -11,9 +11,5 @@ XFS_IOC_CLONE_RANGE: Input/output error FS should be shut down, touch will fail touch: cannot touch 'SCRATCH_MNT/badfs': Input/output error Remount to replay log -Check files -2a4f043bf9730a9e8882c9264b9797b3 SCRATCH_MNT/file1 -2a4f043bf9730a9e8882c9264b9797b3 SCRATCH_MNT/file2 -2a4f043bf9730a9e8882c9264b9797b3 SCRATCH_MNT/file3 FS should be online, touch should succeed Done diff --git a/tests/xfs/323 b/tests/xfs/323 index c124f256..18893f20 100755 --- a/tests/xfs/323 +++ b/tests/xfs/323 @@ -80,10 +80,6 @@ touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch echo "Remount to replay log" _scratch_inject_logprint >> $seqres.full -echo "Check files" -md5sum $SCRATCH_MNT/file1 | _filter_scratch -md5sum $SCRATCH_MNT/file3 | _filter_scratch - echo "FS should be online, touch should succeed" touch $SCRATCH_MNT/goodfs diff --git a/tests/xfs/323.out b/tests/xfs/323.out index be41b7e0..99b9688c 100644 --- a/tests/xfs/323.out +++ b/tests/xfs/323.out @@ -10,8 +10,5 @@ XFS_IOC_CLONE_RANGE: Input/output error FS should be shut down, touch will fail touch: cannot touch 'SCRATCH_MNT/badfs': Input/output error Remount to replay log -Check files -2a4f043bf9730a9e8882c9264b9797b3 SCRATCH_MNT/file1 -2a4f043bf9730a9e8882c9264b9797b3 SCRATCH_MNT/file3 FS should be online, touch should succeed Done -- 2.39.5