]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-wnbd: introduce RbdMapping class
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 12 Jun 2023 08:00:40 +0000 (08:00 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 1 Mar 2024 17:35:28 +0000 (17:35 +0000)
commit96e8850ff3b6661c86eb361051282c8d66ca2031
tree12044687919aa84141769c067b1674fe66913949
parent0e0b229496092640256e2ce403cac69b96e420bc
rbd-wnbd: introduce RbdMapping class

We're moving most of the WNBD mapping handling to a separate
class called RbdMapping. This simplifies cleanup and makes it
easier to reuse.

The WnbdHandler class covers WNBD specific operations and IO
callbacks while the RbdMapping wrapper will take care of RBD
operations.

A subsequent change will make use of it while switching from
one process per mapping to a single process per host.

While at it, we're also moving the rbd-wnbd config helpers
to separate files.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/tools/rbd_wnbd/CMakeLists.txt
src/tools/rbd_wnbd/rbd_mapping.cc [new file with mode: 0644]
src/tools/rbd_wnbd/rbd_mapping.h [new file with mode: 0644]
src/tools/rbd_wnbd/rbd_mapping_config.cc [new file with mode: 0644]
src/tools/rbd_wnbd/rbd_mapping_config.h [new file with mode: 0644]
src/tools/rbd_wnbd/rbd_wnbd.cc
src/tools/rbd_wnbd/rbd_wnbd.h
src/tools/rbd_wnbd/wnbd_handler.h