Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
osd_client.h File Reference
#include <linux/completion.h>
#include <linux/kref.h>
#include <linux/mempool.h>
#include <linux/rbtree.h>
#include <linux/ceph/types.h>
#include <linux/ceph/osdmap.h>
#include <linux/ceph/messenger.h>
#include <linux/ceph/auth.h>

Go to the source code of this file.

Data Structures

struct  ceph_osd
 
struct  ceph_osd_request
 
struct  ceph_osd_event
 
struct  ceph_osd_event_work
 
struct  ceph_osd_client
 
struct  ceph_osd_req_op
 

Macros

#define MAX_OBJ_NAME_SIZE   100
 

Typedefs

typedef void(* ceph_osdc_callback_t )(struct ceph_osd_request *, struct ceph_msg *)
 

Functions

int ceph_osdc_init (struct ceph_osd_client *osdc, struct ceph_client *client)
 
void ceph_osdc_stop (struct ceph_osd_client *osdc)
 
void ceph_osdc_handle_reply (struct ceph_osd_client *osdc, struct ceph_msg *msg)
 
void ceph_osdc_handle_map (struct ceph_osd_client *osdc, struct ceph_msg *msg)
 
int ceph_calc_raw_layout (struct ceph_osd_client *osdc, struct ceph_file_layout *layout, u64 snapid, u64 off, u64 *plen, u64 *bno, struct ceph_osd_request *req, struct ceph_osd_req_op *op)
 
struct ceph_osd_requestceph_osdc_alloc_request (struct ceph_osd_client *osdc, int flags, struct ceph_snap_context *snapc, struct ceph_osd_req_op *ops, bool use_mempool, gfp_t gfp_flags, struct page **pages, struct bio *bio)
 
void ceph_osdc_build_request (struct ceph_osd_request *req, u64 off, u64 *plen, struct ceph_osd_req_op *src_ops, struct ceph_snap_context *snapc, struct timespec *mtime, const char *oid, int oid_len)
 
struct ceph_osd_requestceph_osdc_new_request (struct ceph_osd_client *, struct ceph_file_layout *layout, struct ceph_vino vino, u64 offset, u64 *len, int op, int flags, struct ceph_snap_context *snapc, int do_sync, u32 truncate_seq, u64 truncate_size, struct timespec *mtime, bool use_mempool, int num_reply, int page_align)
 
void ceph_osdc_set_request_linger (struct ceph_osd_client *osdc, struct ceph_osd_request *req)
 
void ceph_osdc_unregister_linger_request (struct ceph_osd_client *osdc, struct ceph_osd_request *req)
 
void ceph_osdc_release_request (struct kref *kref)
 
int ceph_osdc_start_request (struct ceph_osd_client *osdc, struct ceph_osd_request *req, bool nofail)
 
int ceph_osdc_wait_request (struct ceph_osd_client *osdc, struct ceph_osd_request *req)
 
void ceph_osdc_sync (struct ceph_osd_client *osdc)
 
int ceph_osdc_readpages (struct ceph_osd_client *osdc, struct ceph_vino vino, struct ceph_file_layout *layout, u64 off, u64 *plen, u32 truncate_seq, u64 truncate_size, struct page **pages, int nr_pages, int page_align)
 
int ceph_osdc_writepages (struct ceph_osd_client *osdc, struct ceph_vino vino, struct ceph_file_layout *layout, struct ceph_snap_context *sc, u64 off, u64 len, u32 truncate_seq, u64 truncate_size, struct timespec *mtime, struct page **pages, int nr_pages, int flags, int do_sync, bool nofail)
 
int ceph_osdc_create_event (struct ceph_osd_client *osdc, void(*event_cb)(u64, u64, u8, void *), int one_shot, void *data, struct ceph_osd_event **pevent)
 
void ceph_osdc_cancel_event (struct ceph_osd_event *event)
 
int ceph_osdc_wait_event (struct ceph_osd_event *event, unsigned long timeout)
 
void ceph_osdc_put_event (struct ceph_osd_event *event)
 

Variables

struct ceph_osd __attribute__
 

Macro Definition Documentation

#define MAX_OBJ_NAME_SIZE   100

Definition at line 18 of file osd_client.h.

Typedef Documentation

typedef void(* ceph_osdc_callback_t)(struct ceph_osd_request *, struct ceph_msg *)

Definition at line 30 of file osd_client.h.

Function Documentation

int ceph_calc_raw_layout ( struct ceph_osd_client osdc,
struct ceph_file_layout layout,
u64  snapid,
u64  off,
u64 plen,
u64 bno,
struct ceph_osd_request req,
struct ceph_osd_req_op op 
)

Definition at line 55 of file osd_client.c.

struct ceph_osd_request* ceph_osdc_alloc_request ( struct ceph_osd_client osdc,
int  flags,
struct ceph_snap_context snapc,
struct ceph_osd_req_op ops,
bool  use_mempool,
gfp_t  gfp_flags,
struct page **  pages,
struct bio *  bio 
)
read

Definition at line 192 of file osd_client.c.

void ceph_osdc_build_request ( struct ceph_osd_request req,
u64  off,
u64 plen,
struct ceph_osd_req_op src_ops,
struct ceph_snap_context snapc,
struct timespec mtime,
const char oid,
int  oid_len 
)

Definition at line 366 of file osd_client.c.

void ceph_osdc_cancel_event ( struct ceph_osd_event event)

Definition at line 1616 of file osd_client.c.

int ceph_osdc_create_event ( struct ceph_osd_client osdc,
void(*)(u64, u64, u8, void *)  event_cb,
int  one_shot,
void data,
struct ceph_osd_event **  pevent 
)

Definition at line 1585 of file osd_client.c.

void ceph_osdc_handle_map ( struct ceph_osd_client osdc,
struct ceph_msg msg 
)

Definition at line 1386 of file osd_client.c.

void ceph_osdc_handle_reply ( struct ceph_osd_client osdc,
struct ceph_msg msg 
)
int ceph_osdc_init ( struct ceph_osd_client osdc,
struct ceph_client client 
)

Definition at line 1834 of file osd_client.c.

struct ceph_osd_request* ceph_osdc_new_request ( struct ceph_osd_client ,
struct ceph_file_layout layout,
struct ceph_vino  vino,
u64  offset,
u64 len,
int  op,
int  flags,
struct ceph_snap_context snapc,
int  do_sync,
u32  truncate_seq,
u64  truncate_size,
struct timespec mtime,
bool  use_mempool,
int  num_reply,
int  page_align 
)
read

Definition at line 451 of file osd_client.c.

void ceph_osdc_put_event ( struct ceph_osd_event event)

Definition at line 1524 of file osd_client.c.

int ceph_osdc_readpages ( struct ceph_osd_client osdc,
struct ceph_vino  vino,
struct ceph_file_layout layout,
u64  off,
u64 plen,
u32  truncate_seq,
u64  truncate_size,
struct page **  pages,
int  nr_pages,
int  page_align 
)

Definition at line 1918 of file osd_client.c.

void ceph_osdc_release_request ( struct kref kref)

Definition at line 142 of file osd_client.c.

void ceph_osdc_set_request_linger ( struct ceph_osd_client osdc,
struct ceph_osd_request req 
)

Definition at line 939 of file osd_client.c.

int ceph_osdc_start_request ( struct ceph_osd_client osdc,
struct ceph_osd_request req,
bool  nofail 
)

Definition at line 1725 of file osd_client.c.

void ceph_osdc_stop ( struct ceph_osd_client osdc)

Definition at line 1897 of file osd_client.c.

void ceph_osdc_sync ( struct ceph_osd_client osdc)

Definition at line 1800 of file osd_client.c.

void ceph_osdc_unregister_linger_request ( struct ceph_osd_client osdc,
struct ceph_osd_request req 
)

Definition at line 927 of file osd_client.c.

int ceph_osdc_wait_event ( struct ceph_osd_event event,
unsigned long  timeout 
)

Definition at line 1707 of file osd_client.c.

int ceph_osdc_wait_request ( struct ceph_osd_client osdc,
struct ceph_osd_request req 
)

Definition at line 1776 of file osd_client.c.

int ceph_osdc_writepages ( struct ceph_osd_client osdc,
struct ceph_vino  vino,
struct ceph_file_layout layout,
struct ceph_snap_context sc,
u64  off,
u64  len,
u32  truncate_seq,
u64  truncate_size,
struct timespec mtime,
struct page **  pages,
int  nr_pages,
int  flags,
int  do_sync,
bool  nofail 
)

Definition at line 1955 of file osd_client.c.

Variable Documentation