libceph: introduce get_osdmap_client_data_v()
authorIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 21 Mar 2014 17:05:29 +0000 (19:05 +0200)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:07:55 +0000 (21:07 -0700)
commitec7af97258396161e6effba7e788c3fc3cb55263
treefc00b89d05b40fadd9dba80fe8c31fc316a605eb
parent10db634e2083a202a26123d6d4c9ede98d6a1199
libceph: introduce get_osdmap_client_data_v()

Full and incremental osdmaps are structured identically and have
identical headers.  Add a helper to decode both "old" (16-bit version,
v6) and "new" (8-bit struct_v+struct_compat+struct_len, v7) osdmap
enconding headers and switch to it.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
net/ceph/osdmap.c