Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
osdmap.h File Reference
#include <linux/rbtree.h>
#include <linux/ceph/types.h>
#include <linux/ceph/ceph_fs.h>
#include <linux/crush/crush.h>

Go to the source code of this file.

Data Structures

struct  ceph_pg_pool_info
 
struct  ceph_pg_mapping
 
struct  ceph_osdmap
 

Macros

#define ceph_file_layout_su(l)   ((__s32)le32_to_cpu((l).fl_stripe_unit))
 
#define ceph_file_layout_stripe_count(l)   ((__s32)le32_to_cpu((l).fl_stripe_count))
 
#define ceph_file_layout_object_size(l)   ((__s32)le32_to_cpu((l).fl_object_size))
 
#define ceph_file_layout_cas_hash(l)   ((__s32)le32_to_cpu((l).fl_cas_hash))
 
#define ceph_file_layout_object_su(l)   ((__s32)le32_to_cpu((l).fl_object_stripe_unit))
 
#define ceph_file_layout_pg_pool(l)   ((__s32)le32_to_cpu((l).fl_pg_pool))
 

Functions

charceph_osdmap_state_str (char *str, int len, int state)
 
struct ceph_osdmaposdmap_decode (void **p, void *end)
 
struct ceph_osdmaposdmap_apply_incremental (void **p, void *end, struct ceph_osdmap *map, struct ceph_messenger *msgr)
 
void ceph_osdmap_destroy (struct ceph_osdmap *map)
 
int ceph_calc_file_object_mapping (struct ceph_file_layout *layout, u64 off, u64 *plen, u64 *bno, u64 *oxoff, u64 *oxlen)
 
int ceph_calc_object_layout (struct ceph_object_layout *ol, const char *oid, struct ceph_file_layout *fl, struct ceph_osdmap *osdmap)
 
int ceph_calc_pg_acting (struct ceph_osdmap *osdmap, struct ceph_pg pgid, int *acting)
 
int ceph_calc_pg_primary (struct ceph_osdmap *osdmap, struct ceph_pg pgid)
 
int ceph_pg_poolid_by_name (struct ceph_osdmap *map, const char *name)
 

Macro Definition Documentation

#define ceph_file_layout_cas_hash (   l)    ((__s32)le32_to_cpu((l).fl_cas_hash))

Definition at line 65 of file osdmap.h.

#define ceph_file_layout_object_size (   l)    ((__s32)le32_to_cpu((l).fl_object_size))

Definition at line 64 of file osdmap.h.

#define ceph_file_layout_object_su (   l)    ((__s32)le32_to_cpu((l).fl_object_stripe_unit))

Definition at line 66 of file osdmap.h.

#define ceph_file_layout_pg_pool (   l)    ((__s32)le32_to_cpu((l).fl_pg_pool))

Definition at line 68 of file osdmap.h.

#define ceph_file_layout_stripe_count (   l)    ((__s32)le32_to_cpu((l).fl_stripe_count))

Definition at line 62 of file osdmap.h.

#define ceph_file_layout_su (   l)    ((__s32)le32_to_cpu((l).fl_stripe_unit))

Definition at line 61 of file osdmap.h.

Function Documentation

int ceph_calc_file_object_mapping ( struct ceph_file_layout layout,
u64  off,
u64 plen,
u64 bno,
u64 oxoff,
u64 oxlen 
)

Definition at line 987 of file osdmap.c.

int ceph_calc_object_layout ( struct ceph_object_layout ol,
const char oid,
struct ceph_file_layout fl,
struct ceph_osdmap osdmap 
)

Definition at line 1054 of file osdmap.c.

int ceph_calc_pg_acting ( struct ceph_osdmap osdmap,
struct ceph_pg  pgid,
int acting 
)

Definition at line 1144 of file osdmap.c.

int ceph_calc_pg_primary ( struct ceph_osdmap osdmap,
struct ceph_pg  pgid 
)

Definition at line 1165 of file osdmap.c.

void ceph_osdmap_destroy ( struct ceph_osdmap map)

Definition at line 552 of file osdmap.c.

char* ceph_osdmap_state_str ( char str,
int  len,
int  state 
)

Definition at line 14 of file osdmap.c.

int ceph_pg_poolid_by_name ( struct ceph_osdmap map,
const char name 
)

Definition at line 472 of file osdmap.c.

struct ceph_osdmap* osdmap_apply_incremental ( void **  p,
void end,
struct ceph_osdmap map,
struct ceph_messenger msgr 
)
read

Definition at line 756 of file osdmap.c.

struct ceph_osdmap* osdmap_decode ( void **  p,
void end 
)
read

Definition at line 615 of file osdmap.c.