From: Darrick J. Wong Date: Fri, 17 Jun 2016 01:47:17 +0000 (-0700) Subject: xfs/235: fix logic errors when checking rmap usage after failures X-Git-Tag: v2022.05.01~2447 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8ed5571d5922154ddafee73707401c1568cdb93b;p=xfstests-dev.git xfs/235: fix logic errors when checking rmap usage after failures Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/235 b/tests/xfs/235 index c388af18..c2e03401 100755 --- a/tests/xfs/235 +++ b/tests/xfs/235 @@ -80,8 +80,8 @@ echo "+ mount image" _scratch_mount echo "+ copy more" -$XFS_IO_PROG -f -c "pwrite -S 0x63 0 $((blksz * 64))" -c "fsync" ${SCRATCH_MNT}/file4 >> $seqres.full -test -s ${SCRATCH_MNT}/file4 || _fail "should not be able to copy with busted rmap btree" +$XFS_IO_PROG -f -c "pwrite -S 0x63 0 $((blksz * 64))" -c "fsync" ${SCRATCH_MNT}/file4 >> $seqres.full 2>&1 +test -s ${SCRATCH_MNT}/file4 && _fail "should not be able to copy with busted rmap btree" umount ${SCRATCH_MNT} echo "+ repair fs" diff --git a/tests/xfs/235.out b/tests/xfs/235.out index 89a11d63..7640224e 100644 --- a/tests/xfs/235.out +++ b/tests/xfs/235.out @@ -6,7 +6,6 @@ QA output created by 235 + corrupt image + mount image + copy more -fsync: Structure needs cleaning + repair fs + mount image (2) + chattr -R -i