]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
filter.btrfs: add filter for btrfs device add
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 27 Feb 2024 12:25:30 +0000 (13:25 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 1 Mar 2024 11:22:36 +0000 (19:22 +0800)
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>
common/filter.btrfs

index ea76e729110815e6126877c988fd230dca0d5c2d..9ef9676175c9d26a89725bca181c3fa95597ab26 100644 (file)
@@ -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