mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
libceph: primary_temp infrastructure
Add primary_temp mappings infrastructure. struct ceph_pg_mapping is overloaded, primary_temp mappings are stored in an rb-tree, rooted at ceph_osdmap, in a manner similar to pg_temp mappings. Dump primary_temp mappings to /sys/kernel/debug/ceph/<client>/osdmap, one 'primary_temp <pgid> <osd>' per line, e.g: primary_temp 2.6 4 Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>
This commit is contained in:
parent
35a935d75d
commit
9686f94c8c
3 changed files with 21 additions and 1 deletions
|
@ -66,6 +66,9 @@ struct ceph_pg_mapping {
|
|||
int len;
|
||||
int osds[];
|
||||
} pg_temp;
|
||||
struct {
|
||||
int osd;
|
||||
} primary_temp;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -83,6 +86,8 @@ struct ceph_osdmap {
|
|||
struct ceph_entity_addr *osd_addr;
|
||||
|
||||
struct rb_root pg_temp;
|
||||
struct rb_root primary_temp;
|
||||
|
||||
struct rb_root pg_pools;
|
||||
u32 pool_max;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue