]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs/172,206: call _log_writes_cleanup in _cleanup
authorSu Yue <glass.su@suse.com>
Thu, 7 Mar 2024 04:04:08 +0000 (12:04 +0800)
committerZorro Lang <zlang@kernel.org>
Tue, 12 Mar 2024 03:39:52 +0000 (11:39 +0800)
commitb3ff58fa319a103e54bdc70b78fa225ac5683945
treea00a895e6f1a36b3d378c8939cb354514d731ea8
parent8000febb32af1cdc5ebf158861455b1688d7e8ef
btrfs/172,206: call _log_writes_cleanup in _cleanup

Because block group tree requires require no-holes feature,
_log_writes_mkfs "-O ^no-holes" fails when "-O block-group-tree" is
given in MKFS_OPTION.
Without explicit _log_writes_cleanup, the two tests fail with
logwrites-test device left. And all next tests will fail due to
SCRATCH DEVICE EBUSY.

Fix it by overriding _cleanup to call _log_writes_cleanup.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Su Yue <glass.su@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/172
tests/btrfs/206