From: Johannes Thumshirn Date: Tue, 27 Feb 2024 12:25:29 +0000 (+0100) Subject: filter.brtfs: add filter for conversion X-Git-Tag: xfs-zoned-2024-06-07~152 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=43f4d620203efdc23b0b1a1557ae7ba595f3f92f;p=users%2Fhch%2Fxfstests-dev.git filter.brtfs: add filter for conversion Add a filter for the output of btrfs-balance with a convert argument. Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain --- diff --git a/common/filter.btrfs b/common/filter.btrfs index 8ab76fcb1..ea76e7291 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