-
- Downloads
libceph, ceph: get and handle cluster maps with addrvecs
In preparation for msgr2, make the cluster send us maps with addrvecs including both LEGACY and MSGR2 addrs instead of a single LEGACY addr. This means advertising support for SERVER_NAUTILUS and also some older features: SERVER_MIMIC, MONENC and MONNAMES. MONNAMES and MONENC are actually pre-argonaut, we just never updated ceph_monmap_decode() for them. Decoding is unconditional, see commit 23c625ce ("libceph: assume argonaut on the server side"). SERVER_MIMIC doesn't bear any meaning for the kernel client. Since ceph_decode_entity_addrvec() is guarded by encoding version checks (and in msgr2 case it is guarded implicitly by the fact that server is speaking msgr2), we assume MSG_ADDR2 for it. Signed-off-by:Ilya Dryomov <idryomov@gmail.com>
Showing
- fs/ceph/mds_client.c 1 addition, 1 deletionfs/ceph/mds_client.c
- fs/ceph/mdsmap.c 11 additions, 10 deletionsfs/ceph/mdsmap.c
- include/linux/ceph/ceph_features.h 8 additions, 3 deletionsinclude/linux/ceph/ceph_features.h
- include/linux/ceph/decode.h 4 additions, 0 deletionsinclude/linux/ceph/decode.h
- include/linux/ceph/mdsmap.h 1 addition, 1 deletioninclude/linux/ceph/mdsmap.h
- include/linux/ceph/osdmap.h 2 additions, 2 deletionsinclude/linux/ceph/osdmap.h
- net/ceph/decode.c 56 additions, 0 deletionsnet/ceph/decode.c
- net/ceph/mon_client.c 105 additions, 40 deletionsnet/ceph/mon_client.c
- net/ceph/osd_client.c 2 additions, 2 deletionsnet/ceph/osd_client.c
- net/ceph/osdmap.c 32 additions, 13 deletionsnet/ceph/osdmap.c
Loading
Please register or sign in to comment