]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd_nbd: fix resize of images mapped using netlink
authorRamana Raja <rraja@redhat.com>
Mon, 22 Jan 2024 22:06:58 +0000 (17:06 -0500)
committerRamana Raja <rraja@redhat.com>
Thu, 25 Jan 2024 15:35:06 +0000 (10:35 -0500)
commit611ccfc28cc1976985853a08333d9c43bd3cd0dc
treea3caa4246af669fd008af297771a12fbef208116
parent8903e60701fdb68a7f2ab35500ff7d8e138d7d6b
rbd_nbd: fix resize of images mapped using netlink

Include device identifier or cookie in the message sent to the kernel
to resize images mapped to NBD devices using netlink. Otherwise,
netlink_resize() fails and the size of the device isn't updated.

Fixes: https://tracker.ceph.com/issues/64139
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 1eebb7ba7903c6db0ab37a0457b263a1b2b00ff5)
qa/workunits/rbd/rbd-nbd.sh
src/tools/rbd_nbd/rbd-nbd.cc