]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd nbd: add support for netlink interface
authorMike Christie <mchristi@redhat.com>
Tue, 14 May 2019 03:57:41 +0000 (22:57 -0500)
committerMike Christie <mchristi@redhat.com>
Tue, 24 Sep 2019 20:41:21 +0000 (15:41 -0500)
commit061b05d43374b057e82e0e13a9f0cf9fd749aed1
treecaf5238c75cb8b593a19d7072c668c8cc771e119
parent207088a0db85cc38f93705e5aaa8a02fba436a1e
rbd nbd: add support for netlink interface

This adds support for mapping and unmapping using the netlink
interface. If the user passes in --try-netlink during mapping then we
will try to use the netlink interface and if that is not supported use
the ioctl interface. For unmap we will always try netlink and if that is
not supported drop down to the ioctl.

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 3abc42536f615a44364ca3849fc495b8e1a06969)
src/tools/rbd_nbd/nbd-netlink.h [new file with mode: 0644]
src/tools/rbd_nbd/rbd-nbd.cc