_cleanup()
{
- umount $SCRATCH_MNT &>/dev/null
+ _scratch_unmount &>/dev/null
cd /
rm -f $tmp.*
}
echo "test reflinks across different mountpoints of same device"
mount $TEST_DEV $SCRATCH_MNT || _fail "Couldn't double-mount $TEST_DEV"
_create_reflinks_to $DUAL_MOUNT_DIR
-umount $SCRATCH_MNT
+_scratch_unmount
# success, all done
status=0