generic/223: make sure all files get created on the data device
[xfstests-dev.git] / tests / generic / 025
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2014 Miklos Szeredi.  All Rights Reserved.
4 #
5 # FS QA Test No. generic/025
6 #
7 # Check renameat2 syscall with RENAME_EXCHANGE flag
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
17
18 _cleanup()
19 {
20     cd /
21     rm -f $tmp.*
22 }
23
24 # get standard environment, filters and checks
25 . ./common/rc
26 . ./common/renameat2
27
28 _supported_fs generic
29
30 _require_test
31 _require_renameat2 exchange
32 _require_symlinks
33
34 # real QA test starts here
35
36 rename_dir=$TEST_DIR/$$
37 mkdir $rename_dir
38 _rename_tests $rename_dir -x
39 rmdir $rename_dir
40
41 # success, all done
42 status=0
43 exit