2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2011 Red Hat, Inc. All Rights Reserved.
7 # simple splice(2) test.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
29 # real QA test starts here
33 echo "Feel the serenity."
35 SRC=$TEST_DIR/$seq.src
36 DST=$TEST_DIR/$seq.dst
39 $XFS_IO_PROG -f -c "pwrite -S 0xa5a55a5a 0 32768k" -c fsync $SRC >> $seqres.full 2>&1
40 [ $? -ne 0 ] && _fail "xfs_io pwrite failed"
41 $XFS_IO_PROG -f -c "sendfile -i $SRC 0 32768k" -c fsync $DST >> $seqres.full 2>&1
42 [ $? -ne 0 ] && _fail "xfs_io sendfile failed"
46 [ $status -ne 0 ] && _fail "$SRC and $DST differ"