]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/bluefs: Cleanup allocation consistency check code
authorAdam Kupczyk <akupczyk@redhat.com>
Wed, 11 Aug 2021 13:41:34 +0000 (15:41 +0200)
committerIgor Fedotov <igor.fedotov@croit.io>
Tue, 6 Dec 2022 00:00:00 +0000 (03:00 +0300)
commitf0ef4c93e220fd37131245b7ab5d66834109a7b0
tree12acb1d55f1b6e28ac2ce2068652079dc37c7afb
parent922fcbb3f77b8eb153ee6b8ef13f47e32f912216
os/bluestore/bluefs: Cleanup allocation consistency check code

When bluefs_log_replay_check_allocations is set _replay performs checks if
allocations/deallocations of extents are valid and properly aligned.
The changes include:
- now deallocations are also checked for valid alignment (more sanity checks)
- bluefs log read from super is checked once - before reading any transaction

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
src/os/bluestore/BlueFS.cc
src/os/bluestore/BlueFS.h