generic: test for file loss after mix of rename, fsync and inode eviction
[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 . ./common/preamble
17 _begin_fstest auto quick
18
19 # Import common functions.
20 . ./common/filter
21
22 # real QA test starts here
23 _supported_fs generic
24 _require_test
25
26 echo "Silence is golden"
27
28 $here/src/t_getcwd $TEST_DIR
29 status=$?
30 exit