. ./common/preamble
_begin_fstest auto balance subvol scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$stop_file" ] && [ ! -z "$subvol_pid" ]; then
+ _btrfs_kill_stress_subvolume_pid $subvol_pid $stop_file
+ fi
+ if [ ! -z "$balance_pid" ]; then
+ _btrfs_kill_stress_balance_pid $balance_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
_require_scratch_dev_pool 4
_btrfs_get_profile_configs
+stop_file=$TEST_DIR/$seq.stop.$$
+
run_test()
{
local mkfs_opts=$1
local subvol_mnt=$TEST_DIR/$seq.mnt
- local stop_file=$TEST_DIR/$seq.stop.$$
echo "Test $mkfs_opts" >>$seqres.full
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_subvolume_pid $subvol_pid $stop_file
+ unset subvol_pid
_btrfs_kill_stress_balance_pid $balance_pid
+ unset balance_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto balance scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$balance_pid" ]; then
+ _btrfs_kill_stress_balance_pid $balance_pid
+ fi
+ if [ ! -z "$scrub_pid" ]; then
+ _btrfs_kill_stress_scrub_pid $scrub_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_balance_pid $balance_pid
+ unset balance_pid
_btrfs_kill_stress_scrub_pid $scrub_pid
+ unset scrub_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto balance defrag compress scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$balance_pid" ]; then
+ _btrfs_kill_stress_balance_pid $balance_pid
+ fi
+ if [ ! -z "$defrag_pid" ]; then
+ _btrfs_kill_stress_defrag_pid $defrag_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_balance_pid $balance_pid
+ unset balance_pid
_btrfs_kill_stress_defrag_pid $defrag_pid
+ unset defrag_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto balance remount compress scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$balance_pid" ]; then
+ _btrfs_kill_stress_balance_pid $balance_pid
+ fi
+ if [ ! -z "$remount_pid" ]; then
+ _btrfs_kill_stress_remount_compress_pid $remount_pid $SCRATCH_MNT
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_balance_pid $balance_pid
+ unset balance_pid
_btrfs_kill_stress_remount_compress_pid $remount_pid $SCRATCH_MNT
+ unset remount_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto balance replace volume scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$balance_pid" ]; then
+ _btrfs_kill_stress_balance_pid $balance_pid
+ fi
+ if [ ! -z "$replace_pid" ]; then
+ _btrfs_kill_stress_replace_pid $replace_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_balance_pid $balance_pid
+ unset balance_pid
_btrfs_kill_stress_replace_pid $replace_pid
+ unset replace_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto subvol replace volume scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$stop_file" ] && [ ! -z "$subvol_pid" ]; then
+ _btrfs_kill_stress_subvolume_pid $subvol_pid $stop_file
+ fi
+ if [ ! -z "$replace_pid" ]; then
+ _btrfs_kill_stress_replace_pid $replace_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
_require_scratch_dev_pool_equal_size
_btrfs_get_profile_configs replace
+stop_file=$TEST_DIR/$seq.stop.$$
+
run_test()
{
local mkfs_opts=$1
local saved_scratch_dev_pool=$SCRATCH_DEV_POOL
local subvol_mnt=$TEST_DIR/$seq.mnt
- local stop_file=$TEST_DIR/$seq.stop.$$
echo "Test $mkfs_opts" >>$seqres.full
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_subvolume_pid $subvol_pid $stop_file
+ unset subvol_pid
_btrfs_kill_stress_replace_pid $replace_pid
+ unset replace_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto subvol scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$stop_file" ] && [ ! -z "$subvol_pid" ]; then
+ _btrfs_kill_stress_subvolume_pid $subvol_pid $stop_file
+ fi
+ if [ ! -z "$scrub_pid" ]; then
+ _btrfs_kill_stress_scrub_pid $scrub_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
_require_scratch_dev_pool 4
_btrfs_get_profile_configs
+stop_file=$TEST_DIR/$seq.stop.$$
+
run_test()
{
local mkfs_opts=$1
local subvol_mnt=$TEST_DIR/$seq.mnt
- local stop_file=$TEST_DIR/$seq.stop.$$
echo "Test $mkfs_opts" >>$seqres.full
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_subvolume_pid $subvol_pid $stop_file
+ unset subvol_pid
_btrfs_kill_stress_scrub_pid $scrub_pid
+ unset scrub_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto subvol defrag compress scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$stop_file" ] && [ ! -z "$subvol_pid" ]; then
+ _btrfs_kill_stress_subvolume_pid $subvol_pid $stop_file
+ fi
+ if [ ! -z "$defrag_pid" ]; then
+ _btrfs_kill_stress_defrag_pid $defrag_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
_require_scratch_dev_pool 4
_btrfs_get_profile_configs
+stop_file=$TEST_DIR/$seq.stop.$$
+
run_test()
{
local mkfs_opts=$1
local with_compress=$2
local subvol_mnt=$TEST_DIR/$seq.mnt
- local stop_file=$TEST_DIR/$seq.stop.$$
echo "Test $mkfs_opts with $with_compress" >>$seqres.full
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_subvolume_pid $subvol_pid $stop_file
+ unset subvol_pid
_btrfs_kill_stress_defrag_pid $defrag_pid
+ unset defrag_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto subvol remount compress scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$stop_file" ] && [ ! -z "$subvol_pid" ]; then
+ _btrfs_kill_stress_subvolume_pid $subvol_pid $stop_file
+ fi
+ if [ ! -z "$remount_pid" ]; then
+ _btrfs_kill_stress_remount_compress_pid $remount_pid $SCRATCH_MNT
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
_require_scratch_dev_pool 4
_btrfs_get_profile_configs
+stop_file=$TEST_DIR/$seq.stop.$$
+
run_test()
{
local mkfs_opts=$1
local subvol_mnt=$TEST_DIR/$seq.mnt
- local stop_file=$TEST_DIR/$seq.stop.$$
echo "Test $mkfs_opts with $with_compress" >>$seqres.full
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_subvolume_pid $subvol_pid $stop_file
+ unset subvol_pid
_btrfs_kill_stress_remount_compress_pid $remount_pid $SCRATCH_MNT
+ unset remount_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto replace scrub volume
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$replace_pid" ]; then
+ _btrfs_kill_stress_replace_pid $replace_pid
+ fi
+ if [ ! -z "$scrub_pid" ]; then
+ _btrfs_kill_stress_scrub_pid $scrub_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_scrub_pid $scrub_pid
+ unset scrub_pid
_btrfs_kill_stress_replace_pid $replace_pid
+ unset replace_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto replace defrag compress volume scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$replace_pid" ]; then
+ _btrfs_kill_stress_replace_pid $replace_pid
+ fi
+ if [ ! -z "$defrag_pid" ]; then
+ _btrfs_kill_stress_defrag_pid $defrag_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_replace_pid $replace_pid
+ unset replace_pid
_btrfs_kill_stress_defrag_pid $defrag_pid
+ unset defrag_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto replace remount compress volume scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$replace_pid" ]; then
+ _btrfs_kill_stress_replace_pid $replace_pid
+ fi
+ if [ ! -z "$remount_pid" ]; then
+ _btrfs_kill_stress_remount_compress_pid $remount_pid $SCRATCH_MNT
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_replace_pid $replace_pid
+ unset replace_pid
_btrfs_kill_stress_remount_compress_pid $remount_pid $SCRATCH_MNT
+ unset remount_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto scrub defrag compress
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$defrag_pid" ]; then
+ _btrfs_kill_stress_defrag_pid $defrag_pid
+ fi
+ if [ ! -z "$scrub_pid" ]; then
+ _btrfs_kill_stress_scrub_pid $scrub_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_defrag_pid $defrag_pid
+ unset defrag_pid
_btrfs_kill_stress_scrub_pid $scrub_pid
+ unset scrub_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto scrub remount compress
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$remount_pid" ]; then
+ _btrfs_kill_stress_remount_compress_pid $remount_pid $SCRATCH_MNT
+ fi
+ if [ ! -z "$scrub_pid" ]; then
+ _btrfs_kill_stress_scrub_pid $scrub_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_remount_compress_pid $remount_pid $SCRATCH_MNT
+ unset remount_pid
_btrfs_kill_stress_scrub_pid $scrub_pid
+ unset scrub_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1
. ./common/preamble
_begin_fstest auto defrag remount compress scrub
+_cleanup()
+{
+ cd /
+ rm -rf $tmp.*
+ if [ ! -z "$remount_pid" ]; then
+ _btrfs_kill_stress_remount_compress_pid $remount_pid $SCRATCH_MNT
+ fi
+ if [ ! -z "$defrag_pid" ]; then
+ _btrfs_kill_stress_defrag_pid $defrag_pid
+ fi
+ if [ ! -z "$fsstress_pid" ]; then
+ kill $fsstress_pid &> /dev/null
+ wait $fsstress_pid &> /dev/null
+ fi
+}
+
# Import common functions.
. ./common/filter
echo "Wait for fsstress to exit and kill all background workers" >>$seqres.full
wait $fsstress_pid
+ unset fsstress_pid
_btrfs_kill_stress_remount_compress_pid $remount_pid $SCRATCH_MNT
+ unset remount_pid
_btrfs_kill_stress_defrag_pid $defrag_pid
+ unset defrag_pid
echo "Scrub the filesystem" >>$seqres.full
$BTRFS_UTIL_PROG scrub start -B $SCRATCH_MNT >>$seqres.full 2>&1