# Test if we create a hard link to a file and persist either of the files, all
# the names persist.
#
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-
-here=`pwd`
-tmp=/tmp/$$
-status=1 # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
+. ./common/preamble
+_begin_fstest auto quick log
+# Override the default cleanup function.
_cleanup()
{
_cleanup_flakey
rm -f $tmp.*
}
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
. ./common/filter
. ./common/dmflakey
# 256MB in byte
fssize=$((2**20 * 256))
-# remove previous $seqres.full before test
-rm -f $seqres.full
-
# real QA test starts here
_supported_fs generic
_require_scratch_nocheck
before=""
after=""
-
# Using _scratch_mkfs instead of cleaning up the working directory,
# adds about 10 seconds of delay in total for the 37 tests.
clean_dir()
clean_dir
}
-
# Create different combinations to run the link test
# Group 0: Both files within root directory
file_names[0]="foo bar"