showme=false
have_test_arg=false
randomize=false
-here=`pwd`
+export here=`pwd`
xfile=""
# start the initialisation work now
_notrun "This test requires a cp with --reflink support."
}
+_require_fssum()
+{
+ FSSUM_PROG=$here/src/fssum
+ [ -x $FSSUM_PROG ] || _notrun "fssum not built"
+}
+
# Given 2 files, verify that they have the same mapping but different
# inodes - i.e. an undisturbed reflink
# Silent if so, make noise if not
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
-here=`pwd`
tmp=`mktemp -d`
status=1
_supported_fs btrfs
_supported_os Linux
_require_scratch
+_require_fssum
_require_seek_data_hole
-FSSUM_PROG=$here/src/fssum
-[ -x $FSSUM_PROG ] || _notrun "fssum not built"
-
rm -f $seqres.full
workout()
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
-here=`pwd`
tmp=`mktemp -d`
tmp_dir=send_temp_$seq
_supported_fs btrfs
_supported_os Linux
_require_scratch
-
-FSSUM_PROG=$here/src/fssum
-[ -x $FSSUM_PROG ] || _notrun "fssum not built"
+_require_fssum
_scratch_mkfs > /dev/null 2>&1
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
-here=`pwd`
tmp=`mktemp -d`
status=1 # failure is the default!
trap "_cleanup; exit \$status" 0 1 2 3 15
_supported_fs btrfs
_supported_os Linux
_require_scratch
+_require_fssum
_need_to_be_root
-FSSUM_PROG=$here/src/fssum
-[ -x $FSSUM_PROG ] || _notrun "fssum not built"
-
rm -f $seqres.full
_scratch_mkfs >/dev/null 2>&1
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
-here=`pwd`
tmp=`mktemp -d`
status=1 # failure is the default!
trap "_cleanup; exit \$status" 0 1 2 3 15
_supported_fs btrfs
_supported_os Linux
_require_scratch
+_require_fssum
_need_to_be_root
-FSSUM_PROG=$here/src/fssum
-[ -x $FSSUM_PROG ] || _notrun "fssum not built"
-
rm -f $seqres.full
_scratch_mkfs >/dev/null 2>&1
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
-here=`pwd`
tmp=`mktemp -d`
status=1 # failure is the default!
trap "_cleanup; exit \$status" 0 1 2 3 15
_supported_fs btrfs
_supported_os Linux
_require_scratch
+_require_fssum
_need_to_be_root
-FSSUM_PROG=$here/src/fssum
-[ -x $FSSUM_PROG ] || _notrun "fssum not built"
-
rm -f $seqres.full
_scratch_mkfs >/dev/null 2>&1
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
-here=`pwd`
tmp=`mktemp -d`
status=1 # failure is the default!
trap "_cleanup; exit \$status" 0 1 2 3 15
_supported_fs btrfs
_supported_os Linux
_require_scratch
+_require_fssum
_need_to_be_root
-FSSUM_PROG=$here/src/fssum
-[ -x $FSSUM_PROG ] || _notrun "fssum not built"
-
rm -f $seqres.full
_scratch_mkfs >/dev/null 2>&1