commit | ec7af97258396161e6effba7e788c3fc3cb55263 | [log] [tgz] |
---|---|---|
author | Ilya Dryomov <ilya.dryomov@inktank.com> | Fri Mar 21 19:05:29 2014 +0200 |
committer | Sage Weil <sage@inktank.com> | Fri Apr 04 21:07:55 2014 -0700 |
tree | fc00b89d05b40fadd9dba80fe8c31fc316a605eb | |
parent | 10db634e2083a202a26123d6d4c9ede98d6a1199 [diff] |
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>