]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: Add admin socket commands to inspect onode metadata
authorAdam Kupczyk <akupczyk@ibm.com>
Mon, 10 Jun 2024 16:03:24 +0000 (16:03 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Thu, 24 Apr 2025 06:47:18 +0000 (06:47 +0000)
commit86bd353f5dcf9d60cbd00848b5fc636f4594529c
treee999a30744c722bbbfdfb3d8f1f4479a4723aa35
parent4d6e7ac371b92590393ac2d982bdcb27f9fea0bb
os/bluestore: Add admin socket commands to inspect onode metadata

Add admin socket commands:
1) bluestore collections
Lists collections.
2) bluestore list <coll> [start object] [max count]
Lists collection coll starting from object (optional). Default 100 entries. 0 = unlimited.
3) bluestore onode metadata <object>
Prints onode metadata as seen by BlueStore.

It might happen (usually in tests) that 2 BlueStore instances are created at the same time.
Since admin commands are unique, it fails to register.
Use first register to detect whether we can register at all.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/crimson/os/alienstore/CMakeLists.txt
src/os/CMakeLists.txt
src/os/bluestore/BlueAdmin.cc [new file with mode: 0644]
src/os/bluestore/BlueAdmin.h [new file with mode: 0644]
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h
src/test/objectstore/store_test_fixture.cc