aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2024-02-27 13:25:30 +0100
committerZorro Lang <zlang@kernel.org>2024-03-01 19:22:36 +0800
commitfe6326040eb35069396d6f139bf548d8100cee9f (patch)
tree7a3077daba922018cbe9784c7caafc1b94bd38c5
parent43f4d620203efdc23b0b1a1557ae7ba595f3f92f (diff)
downloadxfstests-dev-fe6326040eb35069396d6f139bf548d8100cee9f.tar.gz
filter.btrfs: add filter for btrfs device add
Add a filter for the output of btrfs device add. 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.btrfs9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/filter.btrfs b/common/filter.btrfs
index ea76e72911..9ef9676175 100644
--- a/common/filter.btrfs
+++ b/common/filter.btrfs
@@ -147,5 +147,14 @@ _filter_balance_convert()
_filter_scratch | \
sed -e "s/relocate [0-9]\+ out of [0-9]\+ chunks/relocate X out of X chunks/g"
}
+
+# filter output of "btrfs device add"
+_filter_device_add()
+{
+ _filter_scratch | _filter_scratch_pool | \
+ sed -e "/Resetting device zones SCRATCH_DEV ([0-9]\+/d"
+
+}
+
# make sure this script returns success
/bin/true