]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore: fix ceph_assert in segment_manager.h 53938/head
authorAravind Ramesh <aravind.ramesh@wdc.com>
Mon, 15 May 2023 09:22:13 +0000 (11:22 +0200)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 11 Oct 2023 11:07:29 +0000 (11:07 +0000)
commit11cde098be539070230d858a54cb5449cdd21884
tree66d766016139e78a07255cf518f5eb0bf698dd62
parent281a9fba66f3aef385178a4640ad8e7c35747e0c
crimson/os/seastore: fix ceph_assert in segment_manager.h

Assert is seen when crimson-osd is compiled with -DWITH_ZNS=ON and
crimson-osd is started with a regular SSD.

ceph/src/crimson/os/seastore/segment_manager.h:77 : In function 'void crimson::os::seastore::block_sm_superblock_t::validate() const', ceph_assert(%s)
get_default_backend_of_device(config.spec.dtype) == backend_type_t::SEGMENTED

The device type "dtype" is not getting propogated properly
to BlockSegmentManager instantiation causing the assert at a
later point.

Signed-off-by: Aravind Ramesh <aravind.ramesh@wdc.com>
(cherry picked from commit cb73d3a9b7a3d6ff5b44e9fd1285aadf7ae787d7)
src/crimson/os/seastore/segment_manager.cc