]> 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>
Wed, 24 Jan 2024 20:33:50 +0000 (15:33 -0500)
commit1eebb7ba7903c6db0ab37a0457b263a1b2b00ff5
treebd162314236cf8febc2244b1d1d6428be8548c26
parentb5d0337092478b84e49a85ee64e2d735d1aad533
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>
qa/workunits/rbd/rbd-nbd.sh
src/tools/rbd_nbd/rbd-nbd.cc