libceph: decode into cpu-native ceph_pg type
Always decode data into our cpu-native ceph_pg type that has the correct field widths. Limit any remaining uses of ceph_pg_v1 to dealing with the legacy protocol. Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Alex Elder <elder@inktank.com>
This commit is contained in:
parent
12979354a1
commit
5b191d9914
6 changed files with 62 additions and 48 deletions
|
|
@ -56,7 +56,7 @@ struct ceph_osd_request {
|
|||
struct list_head r_linger_item;
|
||||
struct list_head r_linger_osd;
|
||||
struct ceph_osd *r_osd;
|
||||
struct ceph_pg_v1 r_pgid;
|
||||
struct ceph_pg r_pgid;
|
||||
int r_pg_osds[CEPH_PG_MAX_SIZE];
|
||||
int r_num_pg_osds;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue