]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-nbd: log errors during netlink_resize() using derr 55287/head
authorRamana Raja <rraja@redhat.com>
Tue, 23 Jan 2024 21:07:04 +0000 (16:07 -0500)
committerRamana Raja <rraja@redhat.com>
Wed, 24 Jan 2024 20:33:59 +0000 (15:33 -0500)
commit1712b95c784c5ce381fbf4b09e8219ea40bd99a8
treebaeb1b00a32fd629d775b24e56b21f42cf34ce6b
parent1eebb7ba7903c6db0ab37a0457b263a1b2b00ff5
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>
src/tools/rbd_nbd/rbd-nbd.cc