]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-nbd: log errors during netlink_resize() using derr 55317/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:50 +0000 (10:35 -0500)
commite1e027477094ce1cb66f8f8a678ffe1fdea3d4bf
treecc9bc1a355fd3bd964e44f6bc83da978c25573a5
parent1013ced7555877429c51002ea92bfccf0d5a30ee
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