aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2024-02-27 13:25:29 +0100
committerZorro Lang <zlang@kernel.org>2024-03-01 19:22:36 +0800
commit43f4d620203efdc23b0b1a1557ae7ba595f3f92f (patch)
tree56bada8cc3cec3da4c48429f7670977bcffd3305
parent662db267353858df126c1fc731fbe77fe4b3e1bf (diff)
downloadxfstests-dev-43f4d620203efdc23b0b1a1557ae7ba595f3f92f.tar.gz
filter.brtfs: add filter for conversion
Add a filter for the output of btrfs-balance with a convert argument. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Anand Jain <anand.jain@oracle.com>
-rw-r--r--common/filter.btrfs6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/filter.btrfs b/common/filter.btrfs
index 8ab76fcb19..ea76e72911 100644
--- a/common/filter.btrfs
+++ b/common/filter.btrfs
@@ -141,5 +141,11 @@ _filter_stripe_tree()
-e "s/bytes used [0-9]+/bytes used XXXXXX/"
}
+# filter output of "btrfs balance start -[smd] convert
+_filter_balance_convert()
+{
+ _filter_scratch | \
+ sed -e "s/relocate [0-9]\+ out of [0-9]\+ chunks/relocate X out of X chunks/g"
+}
# make sure this script returns success
/bin/true