]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore: fix ceph_assert in segment_manager.h 51475/head
authorAravind Ramesh <aravind.ramesh@wdc.com>
Mon, 15 May 2023 09:22:13 +0000 (11:22 +0200)
committerAravind Ramesh <aravind.ramesh@wdc.com>
Wed, 24 May 2023 09:57:39 +0000 (11:57 +0200)
commitcb73d3a9b7a3d6ff5b44e9fd1285aadf7ae787d7
treebf3754ad86f05263f75caa845976abd2cf7e9a57
parent355ffa4ef8ea11c57d6498973859683aa67e9729
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>
src/crimson/os/seastore/segment_manager.cc