]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerAdam Kupczyk <akupczyk@redhat.com>
Thu, 12 Aug 2021 10:23:35 +0000 (12:23 +0200)
commitb1ce81eac7ff6d29e16ae9ed5dbbb02580dfc362
tree4d1f67ec64c9d5e5894b409d24e3ec52864868e0
parentc8953b4ed3e3b446782917171ca755ae50ef26b8
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