mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
libceph: add ceph_decode_entity_addr
Add a function for decoding an entity_addr_t. Once CEPH_FEATURE_MSG_ADDR2 is enabled, the server daemons will start encoding entity_addr_t differently. Add a new helper function that can handle either format. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
bc07532cc5
commit
6c37f0e641
3 changed files with 93 additions and 1 deletions
|
@ -230,6 +230,8 @@ static inline void ceph_decode_addr(struct ceph_entity_addr *a)
|
|||
WARN_ON(a->in_addr.ss_family == 512);
|
||||
}
|
||||
|
||||
extern int ceph_decode_entity_addr(void **p, void *end,
|
||||
struct ceph_entity_addr *addr);
|
||||
/*
|
||||
* encoders
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue