From 4c39071a488c8f07f6a83f701659cb739ce353cf Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 2 Sep 2016 12:07:10 -0400 Subject: [PATCH] scripts/bdev_grep: parse bluefs style extents too (they use + instead of ~) Signed-off-by: Sage Weil --- src/script/bdev_grep.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/bdev_grep.pl b/src/script/bdev_grep.pl index f5a316b4f97e..a343aad450c9 100755 --- a/src/script/bdev_grep.pl +++ b/src/script/bdev_grep.pl @@ -6,8 +6,8 @@ while (<>) { # next unless / \d\d bdev /; my $rest = $_; my @hit; - while ($rest =~ /([\da-f]+)~([\da-f]+)/) { - my ($o, $l) = $rest =~ /([\da-f]+)~([\da-f]+)/; + while ($rest =~ /([\da-f]+)[~\+]([\da-f]+)/) { + my ($o, $l) = $rest =~ /([\da-f]+)[~\+]([\da-f]+)/; $rest = $'; if (hex($offset) >= hex($o) && hex($offset) < hex($o) + hex($l)) { -- 2.47.3