]> 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>
Sat, 2 Mar 2024 19:04:26 +0000 (19:04 +0000)
commit1f90420a831cebcff85ab661e78c92d3a03073bb
tree99f8dd3a7cd7f8989dbb5e93b2cace9b832261bf
parente3c31b091563bc505b0b66298859307ff71d2dc3
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>
(cherry picked from commit 96e8850ff3b6661c86eb361051282c8d66ca2031)
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