]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-wnbd: adjust admin socket hook to accept image path
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 26 Sep 2023 08:00:19 +0000 (08:00 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 1 Mar 2024 17:39:00 +0000 (17:39 +0000)
commit83d58ab307063b4a37f3a297af2b0e6ba27e84dc
tree76ae6748edd847ebe404f4d8cf8836faa39e1e10
parent0d73d31b6f92d45c602d704b39d11d11536b0a93
rbd-wnbd: adjust admin socket hook to accept image path

For each rbd-wnbd mapping we set an admin socket hook that can
be used to retrieve IO stats.

Now that the same daemon is reused for multiple mappings, we need
to distinguish the images when receiving a "stats" request.

For this reason, we'll add the image identifier to "wnbd stats"
admin socket commands.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/tools/rbd_wnbd/rbd_wnbd.cc
src/tools/rbd_wnbd/wnbd_handler.cc
src/tools/rbd_wnbd/wnbd_handler.h