]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-nbd: log errors during netlink_resize() using derr 55316/head
authorRamana Raja <rraja@redhat.com>
Tue, 23 Jan 2024 21:07:04 +0000 (16:07 -0500)
committerRamana Raja <rraja@redhat.com>
Thu, 25 Jan 2024 15:35:06 +0000 (10:35 -0500)
commit7e4fdfa544e2a7986f712e8dd80cb6ccdddac273
treeb529280d7a2d043dec63f5f21d3d0d291fb7a185
parent611ccfc28cc1976985853a08333d9c43bd3cd0dc
rbd-nbd: log errors during netlink_resize() using derr

When using rbd CLI to map the images to NBD devices via netlink,
any errors that arose during image resizing in netlink_resize()
were not logged. Switching the error logging from using cerr to
derr helps log the errors from netlink_resize().

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 1712b95c784c5ce381fbf4b09e8219ea40bd99a8)
src/tools/rbd_nbd/rbd-nbd.cc