]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mount.ceph: collect v2 addresses for non-legacy ms_mode options 38788/head
authorJeff Layton <jlayton@redhat.com>
Wed, 6 Jan 2021 14:30:13 +0000 (09:30 -0500)
committerJeff Layton <jlayton@redhat.com>
Thu, 7 Jan 2021 13:37:57 +0000 (08:37 -0500)
commit50da7ad7f0a5b75314c51ca4f4c1f2c013c0e8b8
treeea055486c2abf72fb4c88418452691fb56f22646
parent4871269f346e111090d2c2818266ecdf26fe8150
mount.ceph: collect v2 addresses for non-legacy ms_mode options

The kclient recently had support for msgr2 merged, and with that we have
a new ms_mode mount option. The mount helper's support for autodiscovery
of mons currently always ignores v2 addresses.

Change the helper to look for the ms_mode in the provided options and if
it's set to anything but "legacy", have it collect v2 addresses instead
of v1 addrs. The default is still "legacy" so if the option is not
provided, we will still collect v1 addrs.

Fixes: https://tracker.ceph.com/issues/48765
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/mount/conf.cc
src/mount/mount.ceph.c
src/mount/mount.ceph.h