fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 609
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2020 Josef Bacik.  All Rights Reserved.
4 #
5 # FS QA Test 609
6 #
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.
10 #
11 . ./common/preamble
12 _begin_fstest auto quick rw
13
14 # Override the default cleanup function.
15 _cleanup()
16 {
17         cd /
18         rm -f $tmp.*
19         rm -rf $TEST_DIR/file
20 }
21
22 # Import common functions.
23 . ./common/filter
24
25 # Modify as appropriate.
26 _supported_fs generic
27 _require_test
28 _require_xfs_io_command "pwrite"
29 _require_odirect
30
31 $XFS_IO_PROG -f -d -s -c "pwrite 0 64k" $TEST_DIR/file | _filter_xfs_io
32
33 status=0
34 exit