]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
btrfs: add helper to stop background process running _btrfs_stress_subvolume
authorFilipe Manana <fdmanana@suse.com>
Wed, 27 Mar 2024 17:11:42 +0000 (17:11 +0000)
committerAnand Jain <anand.jain@oracle.com>
Wed, 3 Apr 2024 07:08:41 +0000 (15:08 +0800)
commitd2e240298b8c652b78ca5e8a3f13dc2a3f3066e8
tree2ffed8e86965c75afaaf8ce16f9ddfa33832dce3
parent1305165c278eb1cd86e3677ee32603cd7801531f
btrfs: add helper to stop background process running _btrfs_stress_subvolume

We have this logic to stop a process running _btrfs_stress_subvolume()
spread in several test cases:

   touch $stop_file
   wait $subvol_pid

Add a helper to encapsulate that logic and also remove the stop file after
the process terminated as there's no point having it around anymore.

This will help to avoid repeating the same code again several times in
upcoming changes.

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>
common/btrfs
tests/btrfs/060
tests/btrfs/065
tests/btrfs/066
tests/btrfs/067
tests/btrfs/068