]> git-server-git.apps.pok.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:50 +0000 (10:35 -0500)
commit1013ced7555877429c51002ea92bfccf0d5a30ee
tree02a015fad09ce1ed8b81b3263dfce6afbfc2c9f4
parent9fa9e867b7c5fea5ae9bb32214b3796f7fd1a1b8
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