aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-03-27 17:11:37 +0000
committerAnand Jain <anand.jain@oracle.com>2024-04-03 15:08:08 +0800
commit011174eab1c2059e657a12f69ce6bdb4b19db4ba (patch)
tree75a397b6eaaede916ea359548c12267f64ca901c
parent1237986570e10aa8fc8b70fcc013a834192a16ea (diff)
downloadxfstests-dev-011174eab1c2059e657a12f69ce6bdb4b19db4ba.tar.gz
btrfs/028: removed redundant sync and scratch filesystem unmount
There's no need to have an explicit scratch filesystem sync and unmount at the of the test, as the fstests framework automatically unmounts the filesystem and the unmount naturally syncs any data and metadata. So remove them and update the comment to be more clear. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Anand Jain <anand.jain@oracle.com>
-rwxr-xr-xtests/btrfs/0287
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/btrfs/028 b/tests/btrfs/028
index 8fbe8887f8..0c96b2fec7 100755
--- a/tests/btrfs/028
+++ b/tests/btrfs/028
@@ -48,11 +48,8 @@ kill $fsstress_pid &> /dev/null
wait $fsstress_pid &> /dev/null
_btrfs_kill_stress_balance_pid $balance_pid
-_run_btrfs_util_prog filesystem sync $SCRATCH_MNT
-
-_scratch_unmount
-
-# qgroup will be checked at _check_scratch_fs() by fstest.
+# The qgroups accounting will be checked by 'btrfs check' (fsck) after the
+# fstests framework unmounts the filesystem.
echo "Silence is golden"
status=0