generic: test for file loss after mix of rename, fsync and inode eviction
[xfstests-dev.git] / tests / generic / 248
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 #    Copyright (c) 2010 Intel Corporation
4 #
5 # FS QA Test No. 248
6 #
7 # Test for pwrite hang problem when writing from mmaped buffer of the same page 
8 #
9 . ./common/preamble
10 _begin_fstest auto quick rw
11
12 # Override the default cleanup function.
13 _cleanup()
14 {
15     cd /
16     rm -f $tmp.* $TESTFILE
17 }
18
19 # Import common functions.
20 . ./common/filter
21
22 # real QA test starts here
23
24 # Modify as appropriate.
25 _supported_fs generic
26 _require_test
27
28 TESTFILE=$TEST_DIR/test_file
29 TEST_PROG=$here/src/pwrite_mmap_blocked
30
31 $TEST_PROG $TESTFILE
32
33 # success, all done
34 status=0
35 exit