2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2011 Red Hat, Inc. All Rights Reserved.
7 # simple splice(2) test.
10 _begin_fstest auto quick rw
12 # Override the default cleanup function.
20 # Import common functions.
23 # real QA test starts here
27 echo "Feel the serenity."
29 SRC=$TEST_DIR/$seq.src
30 DST=$TEST_DIR/$seq.dst
32 $XFS_IO_PROG -f -c "pwrite -S 0xa5a55a5a 0 32768k" -c fsync $SRC >> $seqres.full 2>&1
33 [ $? -ne 0 ] && _fail "xfs_io pwrite failed"
34 $XFS_IO_PROG -f -c "sendfile -i $SRC 0 32768k" -c fsync $DST >> $seqres.full 2>&1
35 [ $? -ne 0 ] && _fail "xfs_io sendfile failed"
39 [ $status -ne 0 ] && _fail "$SRC and $DST differ"