From: fdmanana@kernel.org
To: fstests@vger.kernel.org
Cc: linux-btrfs@vger.kernel.org, Filipe Manana <fdmanana@suse.com>
Subject: [PATCH] common/btrfs: exercise all algorithms in _btrfs_stress_remount_compress()
Date: Tue, 15 Sep 2026 16:28:12 +0100 [thread overview]
Message-ID: <cc052d6b35788720c6cdc93be7eb6af637a9fc96.1789486070.git.fdmanana@suse.com> (raw)
From: Filipe Manana <fdmanana@suse.com>
_btrfs_stress_remount_compress() is using a hard coded list of algorithms
which is incomplete as zstd is missing as is supported for some years now.
So remove the hard coded list and use _btrfs_compression_algos() to get
the list of supported compression algorithms.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
common/btrfs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/btrfs b/common/btrfs
index 0bfb02dd..3eb68beb 100644
--- a/common/btrfs
+++ b/common/btrfs
@@ -449,8 +449,10 @@ _btrfs_kill_stress_defrag_pid()
_btrfs_stress_remount_compress()
{
local btrfs_mnt=$1
+ local algo_list=("no" $(_btrfs_compression_algos))
+
while true; do
- for algo in no zlib lzo; do
+ for algo in ${algo_list[@]}; do
_mount -o remount,compress=$algo $btrfs_mnt
done
done
--
2.47.2
next reply other threads:[~2026-09-15 15:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 15:28 fdmanana [this message]
2026-09-15 22:18 ` [PATCH] common/btrfs: exercise all algorithms in _btrfs_stress_remount_compress() Qu Wenruo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cc052d6b35788720c6cdc93be7eb6af637a9fc96.1789486070.git.fdmanana@suse.com \
--to=fdmanana@kernel.org \
--cc=fdmanana@suse.com \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).