mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
Merge PR #23515 into master
* refs/pull/23515/head: os/bluestore_tool: print actual usage in BlueFS::dump_block_extents. Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
88ec550112
@ -288,8 +288,13 @@ void BlueFS::dump_block_extents(ostream& out)
|
||||
if (!bdev[i]) {
|
||||
continue;
|
||||
}
|
||||
out << i << " : size 0x" << std::hex << bdev[i]->get_size()
|
||||
<< " : own 0x" << block_all[i] << std::dec << "\n";
|
||||
auto owned = get_total(i);
|
||||
auto free = get_free(i);
|
||||
out << i << " : device size 0x" << std::hex << bdev[i]->get_size()
|
||||
<< " : own 0x" << block_all[i]
|
||||
<< " = 0x" << owned
|
||||
<< " : using 0x" << owned - free
|
||||
<< std::dec << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user