]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-nbd: map using netlink interface by default 55234/head
authorRamana Raja <rraja@redhat.com>
Wed, 17 Jan 2024 18:24:36 +0000 (13:24 -0500)
committerRamana Raja <rraja@redhat.com>
Thu, 25 Jan 2024 16:00:59 +0000 (11:00 -0500)
commitfcbf7367d285629b382e3d9d32ac354319d1cc66
tree896ac6149293f4caba06202fccfe6edc4a5d79d4
parentf7b52fc71268d97a9711d79e2eab27cc994923d7
rbd-nbd: map using netlink interface by default

Mapping rbd images to nbd devices using ioctl interface is not
robust. It was discovered that the device size or the md5 checksum
of the nbd device was incorrect immediately after mapping using
ioctl method. When using the nbd netlink interface to map RBD images
the issue was not encountered. Switch to using nbd netlink interface
for mapping.

Fixes: https://tracker.ceph.com/issues/64063
Signed-off-by: Ramana Raja <rraja@redhat.com>
PendingReleaseNotes
qa/workunits/rbd/rbd-nbd.sh
src/tools/rbd_nbd/rbd-nbd.cc