]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: dump alloc unit size on bluefs allocation failure.
authorIgor Fedotov <ifedotov@suse.com>
Mon, 23 Aug 2021 14:54:03 +0000 (17:54 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Tue, 27 Jun 2023 11:50:10 +0000 (14:50 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 6a4e328161e4d692bf45605d62ca8fab2fee7670)

src/os/bluestore/BlueFS.cc

index ffa9cd785ecd1674d64fec6703f3990863c36428..ce496bdeb32931a6deba76c71f363e33c355718e 100644 (file)
@@ -3624,6 +3624,7 @@ int BlueFS::_allocate_without_fallback(uint8_t id, uint64_t len,
          << ", allocator type " << alloc[id]->get_type()
          << ", capacity 0x" << alloc[id]->get_capacity()
          << ", block size 0x" << alloc[id]->get_block_size()
+         << ", alloc size 0x" << alloc_size[id]
          << ", free 0x" << alloc[id]->get_free()
          << ", fragmentation " << alloc[id]->get_fragmentation()
          << ", allocated 0x" << (alloc_len > 0 ? alloc_len : 0)
@@ -3670,6 +3671,7 @@ int BlueFS::_allocate(uint8_t id, uint64_t len,
               << ", allocator type " << alloc[id]->get_type()
               << ", capacity 0x" << alloc[id]->get_capacity()
               << ", block size 0x" << alloc[id]->get_block_size()
+              << ", alloc size 0x" << alloc_size[id]
               << ", free 0x" << alloc[id]->get_free()
               << ", fragmentation " << alloc[id]->get_fragmentation()
               << ", allocated 0x" << (alloc_len > 0 ? alloc_len : 0)