2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (C) 2018 Oracle. All Rights Reserved.
7 # Reproduce a regression of btrfs that leads to -EEXIST on creating new files
11 # Btrfs: fix unexpected -EEXIST when creating new inode
14 _begin_fstest auto quick log metadata
16 # Override the default cleanup function.
24 # Import common functions.
28 # real QA test starts here
31 _require_dm_target flakey
33 _scratch_mkfs >>$seqres.full 2>&1
34 _require_metadata_journaling $SCRATCH_DEV
38 # create a file and keep it in write ahead log
39 $XFS_IO_PROG -f -c "fsync" $SCRATCH_MNT/foo
41 # fail this filesystem so that remount can replay the write ahead log
42 _flakey_drop_and_remount
44 # see if we can create a new file successfully
45 touch $SCRATCH_MNT/bar
49 echo "Silence is golden"