From: Sage Weil Date: Fri, 2 Sep 2016 16:07:10 +0000 (-0400) Subject: scripts/bdev_grep: parse bluefs style extents too X-Git-Tag: v11.0.1~320^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10964%2Fhead;p=ceph.git scripts/bdev_grep: parse bluefs style extents too (they use + instead of ~) Signed-off-by: Sage Weil --- 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)) {