]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-nbd: map using netlink interface by default
authorRamana Raja <rraja@redhat.com>
Wed, 17 Jan 2024 18:24:36 +0000 (13:24 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 7 Mar 2025 20:05:56 +0000 (21:05 +0100)
commitb70160ac4d8b86bd4221d555623db58b29ac2cff
treea3db27617e4945977c429a777dcd434c86eb3c94
parentcdc96353032c137b32096e855898a719429a23bd
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>
(cherry picked from commit fcbf7367d285629b382e3d9d32ac354319d1cc66)

Conflicts:
PendingReleaseNotes [ moved to >=18.2.5 section ]
PendingReleaseNotes
qa/workunits/rbd/rbd-nbd.sh
src/tools/rbd_nbd/rbd-nbd.cc