generic: Verify the inheritance behavior of FS_XFLAG_DAX flag in various combinations
[xfstests-dev.git] / tests / generic / 028
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2014 Red Hat Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. generic/028
6 #
7 # The following commit introduced a race condition that causes getcwd(2)
8 # to return "/" instead of correct path
9 #
10 # 232d2d6 dcache: Translating dentry into pathname without taking rename_lock
11 #
12 # These commits fixed the bug
13 # ede4ceb prepend_path() needs to reinitialize dentry/vfsmount/mnt on restarts
14 # f650080 __dentry_path() fixes
15 #
16 seq=`basename $0`
17 seqres=$RESULT_DIR/$seq
18 echo "QA output created by $seq"
19
20 here=`pwd`
21 tmp=/tmp/$$
22 status=1        # failure is the default!
23 trap "_cleanup; exit \$status" 0 1 2 3 15
24
25 _cleanup()
26 {
27     cd /
28     rm -f $tmp.*
29 }
30
31 # get standard environment, filters and checks
32 . ./common/rc
33 . ./common/filter
34
35 # real QA test starts here
36 _supported_fs generic
37 _supported_os Linux
38 _require_test
39
40 echo "Silence is golden"
41
42 $here/src/t_getcwd $TEST_DIR
43 status=$?
44 exit