From: Johannes Thumshirn Date: Tue, 27 Feb 2024 12:25:30 +0000 (+0100) Subject: filter.btrfs: add filter for btrfs device add X-Git-Tag: v2024.03.03~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fe6326040eb35069396d6f139bf548d8100cee9f;p=xfstests-dev.git filter.btrfs: add filter for btrfs device add Add a filter for the output of btrfs device add. 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 ea76e729..9ef96761 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