generic: test for file loss after mix of rename, fsync and inode eviction
[xfstests-dev.git] / tests / generic / 354
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
4 #
5 # FSQA Test No. 354
6 #
7 # Test races between private file mapping faults from racing processes or
8 # threads
9 #
10 . ./common/preamble
11 _begin_fstest auto
12
13 # get standard environment and checks
14
15 # real QA test starts here
16 _supported_fs generic
17 _require_scratch
18 _require_test_program "holetest"
19
20 _scratch_mkfs >>$seqres.full 2>&1
21 _scratch_mount
22
23 $here/src/holetest -f -p $SCRATCH_MNT/testfile 16
24 $here/src/holetest -f -p $SCRATCH_MNT/testfile 256
25 $here/src/holetest -f -p -F $SCRATCH_MNT/testfile 16
26 $here/src/holetest -f -p -F $SCRATCH_MNT/testfile 256
27
28 status=0
29 exit