# - unlink A and mount cycle
# - check that B still contains the modified data
#
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick copyup hardlink
-tmp=/tmp/$$
-status=1 # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-_cleanup()
-{
- rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
. ./common/filter
# real QA test starts here
_require_scratch
_require_scratch_feature index
-rm -f $seqres.full
-
_scratch_mkfs >>$seqres.full 2>&1
# Create 2 hardlinked files in lower
echo "zero" >> $lowerdir/foo
ln $lowerdir/foo $lowerdir/bar
-
# Enable overlay index feature to prevent breaking hardlinks on copy up
_scratch_mount -o index=on
-
rm -f $tmp.*
foo=$SCRATCH_MNT/foo