]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: Add UT for ExtentMap::dup_esb()
authorAdam Kupczyk <akupczyk@ibm.com>
Thu, 4 May 2023 08:50:10 +0000 (08:50 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Wed, 9 Aug 2023 07:51:58 +0000 (07:51 +0000)
commit310bd7e685caa6b6c800021c293f85867a93660e
tree8db0119cf758961f9ed51571f5d2febd4c13063c
parent78eea58f3328cb1d42ef40162dc32219d8ba37e9
os/bluestore: Add UT for ExtentMap::dup_esb()

Add unit tests for ExtentMap::dup_esb() to test_bluestore_types.
Extra hooks added to BlueStore:
1) bluestore_extent_ref_map_t::debug_peek inspects how many times specific AU is used
2) ExtentMap::debug_list_disk_layout to extract how onode maps to AUs
3) BlueStore::debug_punch_hole to use logic from _wctx_finish internal function

Unit tests are limited to operations aligned to allocation unit.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h
src/os/bluestore/bluestore_types.cc
src/os/bluestore/bluestore_types.h
src/test/objectstore/test_bluestore_types.cc