mirror of
https://github.com/ceph/ceph
synced 2024-12-24 04:14:07 +00:00
scripts/bdev_grep: parse bluefs style extents too
(they use + instead of ~) Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
a3568d5a5f
commit
4c39071a48
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user