From 5fa4bffc26e90b2220fff451d343e586994b4cbd Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Mon, 23 Aug 2021 17:54:03 +0300 Subject: [PATCH] os/bluestore: dump alloc unit size on bluefs allocation failure. Signed-off-by: Igor Fedotov (cherry picked from commit 6a4e328161e4d692bf45605d62ca8fab2fee7670) --- src/os/bluestore/BlueFS.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index ffa9cd785ec..ce496bdeb32 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -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) -- 2.47.3