btrfs: new test to run btrfs balance and scrub simultaneously

Run btrfs balance and scrub operations simultaneously with fsstress
running in background.

Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Eryu Guan
2014-10-14 22:59:37 +11:00
committed by Dave Chinner
parent edc2d65c4c
commit dcc48fa83c
4 changed files with 126 additions and 0 deletions
+9
View File
@@ -2588,6 +2588,15 @@ _btrfs_stress_subvolume()
done
}
# stress btrfs by running scrub in a loop
_btrfs_stress_scrub()
{
local btrfs_mnt=$1
while true; do
$BTRFS_UTIL_PROG scrub start -B $btrfs_mnt
done
}
init_rc()
{
if [ "$iam" == new ]