2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2020 Josef Bacik. All Rights Reserved.
7 # iomap can call generic_write_sync() if we're O_DSYNC, so write a basic test to
8 # exercise O_DSYNC so any unsuspecting file systems will get lockdep warnings if
9 # their locking isn't compatible.
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
17 status=1 # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
27 # get standard environment, filters and checks
31 # remove previous $seqres.full before test
34 # Modify as appropriate.
37 _require_xfs_io_command "pwrite"
40 $XFS_IO_PROG -f -d -s -c "pwrite 0 64k" $TEST_DIR/file | _filter_xfs_io