aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph/osdmap.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-02-23 13:41:09 -0500
committerSage Weil <sage@inktank.com>2013-02-26 18:02:25 -0500
commit4f6a7e5ee1393ec4b243b39dac9f36992d161540 (patch)
tree547684ad1dc0e1e3e376e958ab74e164d6972623 /include/linux/ceph/osdmap.h
parentec73a754989c27628c9037887df919561280519c (diff)
ceph: update support for PGID64, PGPOOL3, OSDENC protocol features
Support (and require) the PGID64, PGPOOL3, and OSDENC protocol features. These have been present in ceph.git since v0.42, Feb 2012. Require these features to simplify support; nobody is running older userspace. Note that the new request and reply encoding is still not in place, so the new code is not yet functional. Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Alex Elder <elder@inktank.com>
Diffstat (limited to 'include/linux/ceph/osdmap.h')
-rw-r--r--include/linux/ceph/osdmap.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h
index 8a612df4c248..8587746b7f0e 100644
--- a/include/linux/ceph/osdmap.h
+++ b/include/linux/ceph/osdmap.h
@@ -25,12 +25,22 @@ struct ceph_pg {
25 25
26struct ceph_pg_pool_info { 26struct ceph_pg_pool_info {
27 struct rb_node node; 27 struct rb_node node;
28 int id; 28 s64 id;
29 struct ceph_pg_pool v; 29 u8 type;
30 int pg_num_mask, pgp_num_mask, lpg_num_mask, lpgp_num_mask; 30 u8 size;
31 u8 crush_ruleset;
32 u8 object_hash;
33 u32 pg_num, pgp_num;
34 int pg_num_mask, pgp_num_mask;
35 u64 flags;
31 char *name; 36 char *name;
32}; 37};
33 38
39struct ceph_object_locator {
40 uint64_t pool;
41 char *key;
42};
43
34struct ceph_pg_mapping { 44struct ceph_pg_mapping {
35 struct rb_node node; 45 struct rb_node node;
36 struct ceph_pg pgid; 46 struct ceph_pg pgid;