Re: [PATCH 17/33] libceph: introduce get_osdmap_client_data_v()

2014-03-28 Thread Ilya Dryomov
On Thu, Mar 27, 2014 at 10:17 PM, Alex Elder el...@ieee.org wrote: On 03/27/2014 01:18 PM, Ilya Dryomov wrote: 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

[PATCH 17/33] libceph: introduce get_osdmap_client_data_v()

2014-03-27 Thread Ilya Dryomov
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.dryo...@inktank.com ---

Re: [PATCH 17/33] libceph: introduce get_osdmap_client_data_v()

2014-03-27 Thread Alex Elder
On 03/27/2014 01:18 PM, Ilya Dryomov wrote: 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. It wasn't