]> git.apps.os.sepia.ceph.com Git - ceph.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>
Sat, 2 Mar 2024 19:04:26 +0000 (19:04 +0000)
commit14b873047b0429b82117aa6f974c46fbeab7f89c
treefa20b0ae25c525e1496a715323aa6072bec5d1e6
parent1c27e7eed0adbfe306bf288c1f53590df8c9e9a9
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>
(cherry picked from commit 83d58ab307063b4a37f3a297af2b0e6ba27e84dc)
src/tools/rbd_wnbd/rbd_wnbd.cc
src/tools/rbd_wnbd/wnbd_handler.cc
src/tools/rbd_wnbd/wnbd_handler.h