]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
krbd: add support for msgr2
authorIlya Dryomov <idryomov@gmail.com>
Mon, 18 Jan 2021 12:49:49 +0000 (13:49 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 26 Jan 2021 12:38:56 +0000 (13:38 +0100)
commit37a9b4ba4e9960e4adfa13621ef9f268e884866a
tree0dede201fa62c7b5c471e563ff9aa40ccfade33a
parent5f17c37f78a331b7a4bf793890f9d324c64183e5
krbd: add support for msgr2

Recognize ms_mode map option and filter initial monitor addresses
accordingly: if ms_mode is not given or ms_mode=legacy, discard v2
addresses, otherwise discard v1 addresses.

Note that nothing was discarded (i.e. v2 addresses were passed to
the kernel) previously.  The intent was to preserve that behaviour
in case ms_mode is not given, allowing to change the kernel default
in the future.  However, it turns out that mount.ceph helper has
been misguidedly discarding v2 addresses since commit eae01275134e
("mount.ceph: fork a child to get info from local configuration"),
so that ship has sailed.

Fixes: https://tracker.ceph.com/issues/48976
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 08f714964b7fe5024504818f01328a41acc24965)
doc/man/8/rbd.rst
src/krbd.cc
src/tools/rbd/action/Kernel.cc