ceph_osdmap
struct ceph_osdmap *osdmap; /* current map */
static inline bool ceph_osd_exists(struct ceph_osdmap *map, int osd)
static inline bool ceph_osd_is_up(struct ceph_osdmap *map, int osd)
static inline bool ceph_osd_is_down(struct ceph_osdmap *map, int osd)
extern u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd);
static inline struct ceph_entity_addr *ceph_osd_addr(struct ceph_osdmap *map,
struct ceph_osdmap *ceph_osdmap_alloc(void);
struct ceph_osdmap *ceph_osdmap_decode(void **p, void *end, bool msgr2);
struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, bool msgr2,
struct ceph_osdmap *map);
extern void ceph_osdmap_destroy(struct ceph_osdmap *map);
int ceph_object_locator_to_pg(struct ceph_osdmap *osdmap,
void ceph_pg_to_up_acting_osds(struct ceph_osdmap *osdmap,
bool ceph_pg_to_primary_shard(struct ceph_osdmap *osdmap,
int ceph_pg_to_acting_primary(struct ceph_osdmap *osdmap,
int ceph_get_crush_locality(struct ceph_osdmap *osdmap, int id,
extern struct ceph_pg_pool_info *ceph_pg_pool_by_id(struct ceph_osdmap *map,
extern const char *ceph_pg_pool_name_by_id(struct ceph_osdmap *map, u64 id);
extern int ceph_pg_poolid_by_name(struct ceph_osdmap *map, const char *name);
u64 ceph_pg_pool_flags(struct ceph_osdmap *map, u64 id);
struct ceph_osdmap *map;
struct ceph_osdmap *map = osdc->osdmap;
struct ceph_osdmap *map = osdc->osdmap;
struct ceph_osdmap *newmap;
struct ceph_osdmap *ceph_osdmap_alloc(void)
struct ceph_osdmap *map;
void ceph_osdmap_destroy(struct ceph_osdmap *map)
static int osdmap_set_max_osd(struct ceph_osdmap *map, u32 max)
static int osdmap_set_crush(struct ceph_osdmap *map, struct crush_map *crush)
static int __decode_pools(void **p, void *end, struct ceph_osdmap *map,
static int decode_pools(void **p, void *end, struct ceph_osdmap *map)
static int decode_new_pools(void **p, void *end, struct ceph_osdmap *map)
static int decode_pg_temp(void **p, void *end, struct ceph_osdmap *map)
static int decode_new_pg_temp(void **p, void *end, struct ceph_osdmap *map)
static int decode_primary_temp(void **p, void *end, struct ceph_osdmap *map)
struct ceph_osdmap *map)
u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd)
void osdmap_info(const struct ceph_osdmap *map, const char *fmt, ...)
static int set_primary_affinity(struct ceph_osdmap *map, int osd, u32 aff)
struct ceph_osdmap *map)
struct ceph_osdmap *map)
static int decode_pg_upmap(void **p, void *end, struct ceph_osdmap *map)
static int decode_new_pg_upmap(void **p, void *end, struct ceph_osdmap *map)
static int decode_old_pg_upmap(void **p, void *end, struct ceph_osdmap *map)
static int decode_pg_upmap_items(void **p, void *end, struct ceph_osdmap *map)
struct ceph_osdmap *map)
struct ceph_osdmap *map)
struct ceph_osdmap *map)
struct ceph_osdmap *ceph_osdmap_decode(void **p, void *end, bool msgr2)
struct ceph_osdmap *map;
bool msgr2, struct ceph_osdmap *map)
struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, bool msgr2,
struct ceph_osdmap *map)
int ceph_object_locator_to_pg(struct ceph_osdmap *osdmap,
static int do_crush(struct ceph_osdmap *map, int ruleno, int x,
static void remove_nonexistent_osds(struct ceph_osdmap *osdmap,
static void pg_to_raw_osds(struct ceph_osdmap *osdmap,
static void apply_upmap(struct ceph_osdmap *osdmap,
static void raw_to_up_osds(struct ceph_osdmap *osdmap,
static void apply_primary_affinity(struct ceph_osdmap *osdmap,
static void get_temp_osds(struct ceph_osdmap *osdmap,
void ceph_pg_to_up_acting_osds(struct ceph_osdmap *osdmap,
bool ceph_pg_to_primary_shard(struct ceph_osdmap *osdmap,
int ceph_pg_to_acting_primary(struct ceph_osdmap *osdmap,
int ceph_get_crush_locality(struct ceph_osdmap *osdmap, int id,
struct ceph_pg_pool_info *ceph_pg_pool_by_id(struct ceph_osdmap *map, u64 id)
const char *ceph_pg_pool_name_by_id(struct ceph_osdmap *map, u64 id)
int ceph_pg_poolid_by_name(struct ceph_osdmap *map, const char *name)
u64 ceph_pg_pool_flags(struct ceph_osdmap *map, u64 id)
static int decode_pool_names(void **p, void *end, struct ceph_osdmap *map)