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 _begin_fstest auto quick rw
14 # Override the default cleanup function.
22 # Import common functions.
25 # Modify as appropriate.
28 _require_xfs_io_command "pwrite"
31 $XFS_IO_PROG -f -d -s -c "pwrite 0 64k" $TEST_DIR/file | _filter_xfs_io