Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
osdmap.c File Reference
#include <linux/ceph/ceph_debug.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <asm/div64.h>
#include <linux/ceph/libceph.h>
#include <linux/ceph/osdmap.h>
#include <linux/ceph/decode.h>
#include <linux/crush/hash.h>
#include <linux/crush/mapper.h>

Go to the source code of this file.

Functions

charceph_osdmap_state_str (char *str, int len, int state)
 
int ceph_pg_poolid_by_name (struct ceph_osdmap *map, const char *name)
 
 EXPORT_SYMBOL (ceph_pg_poolid_by_name)
 
void ceph_osdmap_destroy (struct ceph_osdmap *map)
 
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)
 
int ceph_calc_file_object_mapping (struct ceph_file_layout *layout, u64 off, u64 *plen, u64 *ono, u64 *oxoff, u64 *oxlen)
 
 EXPORT_SYMBOL (ceph_calc_file_object_mapping)
 
int ceph_calc_object_layout (struct ceph_object_layout *ol, const char *oid, struct ceph_file_layout *fl, struct ceph_osdmap *osdmap)
 
 EXPORT_SYMBOL (ceph_calc_object_layout)
 
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)
 
 EXPORT_SYMBOL (ceph_calc_pg_primary)
 

Function Documentation

int ceph_calc_file_object_mapping ( struct ceph_file_layout layout,
u64  off,
u64 plen,
u64 ono,
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.

EXPORT_SYMBOL ( ceph_pg_poolid_by_name  )
EXPORT_SYMBOL ( ceph_calc_file_object_mapping  )
EXPORT_SYMBOL ( ceph_calc_object_layout  )
EXPORT_SYMBOL ( ceph_calc_pg_primary  )
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.