xfs/235: fix logic errors when checking rmap usage after failures

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Darrick J. Wong
2016-06-16 18:47:17 -07:00
committed by Eryu Guan
parent f5187c47d1
commit 8ed5571d59
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -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"