Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
libceph.h File Reference
#include <linux/ceph/ceph_debug.h>
#include <asm/unaligned.h>
#include <linux/backing-dev.h>
#include <linux/completion.h>
#include <linux/exportfs.h>
#include <linux/bug.h>
#include <linux/fs.h>
#include <linux/mempool.h>
#include <linux/pagemap.h>
#include <linux/wait.h>
#include <linux/writeback.h>
#include <linux/slab.h>
#include <linux/ceph/types.h>
#include <linux/ceph/messenger.h>
#include <linux/ceph/msgpool.h>
#include <linux/ceph/mon_client.h>
#include <linux/ceph/osd_client.h>
#include <linux/ceph/ceph_fs.h>

Go to the source code of this file.

Data Structures

struct  ceph_options
 
struct  ceph_client
 
struct  ceph_snap_context
 

Macros

#define CEPH_OPT_FSID   (1<<0)
 
#define CEPH_OPT_NOSHARE   (1<<1) /* don't share client with other sbs */
 
#define CEPH_OPT_MYIP   (1<<2) /* specified my ip */
 
#define CEPH_OPT_NOCRC   (1<<3) /* no data crc on writes */
 
#define CEPH_OPT_DEFAULT   (0)
 
#define ceph_set_opt(client, opt)   (client)->options->flags |= CEPH_OPT_##opt;
 
#define ceph_test_opt(client, opt)   (!!((client)->options->flags & CEPH_OPT_##opt))
 
#define CEPH_MOUNT_TIMEOUT_DEFAULT   60
 
#define CEPH_OSD_TIMEOUT_DEFAULT   60 /* seconds */
 
#define CEPH_OSD_KEEPALIVE_DEFAULT   5
 
#define CEPH_OSD_IDLE_TTL_DEFAULT   60
 
#define CEPH_MSG_MAX_FRONT_LEN   (16*1024*1024)
 
#define CEPH_MSG_MAX_DATA_LEN   (16*1024*1024)
 
#define CEPH_AUTH_NAME_DEFAULT   "guest"
 
#define CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT   5 /* cap release delay */
 
#define CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT   60 /* cap release delay */
 
#define CEPH_CAP_RELEASE_SAFETY_DEFAULT   (CEPH_CAPS_PER_RELEASE * 4)
 

Enumerations

enum  {
  CEPH_MOUNT_MOUNTING, CEPH_MOUNT_MOUNTED, CEPH_MOUNT_UNMOUNTING, CEPH_MOUNT_UNMOUNTED,
  CEPH_MOUNT_SHUTDOWN
}
 

Functions

const charceph_msg_type_name (int type)
 
int ceph_check_fsid (struct ceph_client *client, struct ceph_fsid *fsid)
 
struct ceph_optionsceph_parse_options (char *options, const char *dev_name, const char *dev_name_end, int(*parse_extra_token)(char *c, void *private), void *private)
 
void ceph_destroy_options (struct ceph_options *opt)
 
int ceph_compare_options (struct ceph_options *new_opt, struct ceph_client *client)
 
struct ceph_clientceph_create_client (struct ceph_options *opt, void *private, unsigned supported_features, unsigned required_features)
 
u64 ceph_client_id (struct ceph_client *client)
 
void ceph_destroy_client (struct ceph_client *client)
 
int __ceph_open_session (struct ceph_client *client, unsigned long started)
 
int ceph_open_session (struct ceph_client *client)
 
void ceph_release_page_vector (struct page **pages, int num_pages)
 
struct page ** ceph_get_direct_page_vector (const char __user *data, int num_pages, bool write_page)
 
void ceph_put_page_vector (struct page **pages, int num_pages, bool dirty)
 
struct page ** ceph_alloc_page_vector (int num_pages, gfp_t flags)
 
int ceph_copy_user_to_page_vector (struct page **pages, const char __user *data, loff_t off, size_t len)
 
int ceph_copy_to_page_vector (struct page **pages, const char *data, loff_t off, size_t len)
 
int ceph_copy_from_page_vector (struct page **pages, char *data, loff_t off, size_t len)
 
int ceph_copy_page_vector_to_user (struct page **pages, char __user *data, loff_t off, size_t len)
 
void ceph_zero_page_vector_range (int off, int len, struct page **pages)
 

Variables

struct ceph_options __attribute__
 
struct kmem_cacheceph_inode_cachep
 
struct kmem_cacheceph_cap_cachep
 
struct kmem_cacheceph_dentry_cachep
 
struct kmem_cacheceph_file_cachep
 

Macro Definition Documentation

#define CEPH_AUTH_NAME_DEFAULT   "guest"

Definition at line 73 of file libceph.h.

#define CEPH_CAP_RELEASE_SAFETY_DEFAULT   (CEPH_CAPS_PER_RELEASE * 4)

Definition at line 84 of file libceph.h.

#define CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT   60 /* cap release delay */

Definition at line 82 of file libceph.h.

#define CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT   5 /* cap release delay */

Definition at line 81 of file libceph.h.

#define CEPH_MOUNT_TIMEOUT_DEFAULT   60

Definition at line 65 of file libceph.h.

#define CEPH_MSG_MAX_DATA_LEN   (16*1024*1024)

Definition at line 71 of file libceph.h.

#define CEPH_MSG_MAX_FRONT_LEN   (16*1024*1024)

Definition at line 70 of file libceph.h.

#define CEPH_OPT_DEFAULT   (0)

Definition at line 33 of file libceph.h.

#define CEPH_OPT_FSID   (1<<0)

Definition at line 28 of file libceph.h.

#define CEPH_OPT_MYIP   (1<<2) /* specified my ip */

Definition at line 30 of file libceph.h.

#define CEPH_OPT_NOCRC   (1<<3) /* no data crc on writes */

Definition at line 31 of file libceph.h.

#define CEPH_OPT_NOSHARE   (1<<1) /* don't share client with other sbs */

Definition at line 29 of file libceph.h.

#define CEPH_OSD_IDLE_TTL_DEFAULT   60

Definition at line 68 of file libceph.h.

#define CEPH_OSD_KEEPALIVE_DEFAULT   5

Definition at line 67 of file libceph.h.

#define CEPH_OSD_TIMEOUT_DEFAULT   60 /* seconds */

Definition at line 66 of file libceph.h.

#define ceph_set_opt (   client,
  opt 
)    (client)->options->flags |= CEPH_OPT_##opt;

Definition at line 35 of file libceph.h.

#define ceph_test_opt (   client,
  opt 
)    (!!((client)->options->flags & CEPH_OPT_##opt))

Definition at line 37 of file libceph.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CEPH_MOUNT_MOUNTING 
CEPH_MOUNT_MOUNTED 
CEPH_MOUNT_UNMOUNTING 
CEPH_MOUNT_UNMOUNTED 
CEPH_MOUNT_SHUTDOWN 

Definition at line 87 of file libceph.h.

Function Documentation

int __ceph_open_session ( struct ceph_client client,
unsigned long  started 
)

Definition at line 526 of file ceph_common.c.

struct page** ceph_alloc_page_vector ( int  num_pages,
gfp_t  flags 
)
read

Definition at line 73 of file pagevec.c.

int ceph_check_fsid ( struct ceph_client client,
struct ceph_fsid fsid 
)

Definition at line 78 of file ceph_common.c.

u64 ceph_client_id ( struct ceph_client client)

Definition at line 434 of file ceph_common.c.

int ceph_compare_options ( struct ceph_options new_opt,
struct ceph_client client 
)

Definition at line 104 of file ceph_common.c.

int ceph_copy_from_page_vector ( struct page **  pages,
char data,
loff_t  off,
size_t  len 
)

Definition at line 145 of file pagevec.c.

int ceph_copy_page_vector_to_user ( struct page **  pages,
char __user data,
loff_t  off,
size_t  len 
)

Definition at line 172 of file pagevec.c.

int ceph_copy_to_page_vector ( struct page **  pages,
const char data,
loff_t  off,
size_t  len 
)

Definition at line 121 of file pagevec.c.

int ceph_copy_user_to_page_vector ( struct page **  pages,
const char __user data,
loff_t  off,
size_t  len 
)

Definition at line 95 of file pagevec.c.

struct ceph_client* ceph_create_client ( struct ceph_options opt,
void private,
unsigned  supported_features,
unsigned  required_features 
)
read
void ceph_destroy_client ( struct ceph_client client)

Definition at line 494 of file ceph_common.c.

void ceph_destroy_options ( struct ceph_options opt)

Definition at line 229 of file ceph_common.c.

struct page** ceph_get_direct_page_vector ( const char __user data,
int  num_pages,
bool  write_page 
)
read

Definition at line 15 of file pagevec.c.

const char* ceph_msg_type_name ( int  type)

Definition at line 43 of file ceph_common.c.

int ceph_open_session ( struct ceph_client client)

Definition at line 557 of file ceph_common.c.

struct ceph_options* ceph_parse_options ( char options,
const char dev_name,
const char dev_name_end,
int(*)(char *c, void *private)  parse_extra_token,
void private 
)
read

Definition at line 285 of file ceph_common.c.

void ceph_put_page_vector ( struct page **  pages,
int  num_pages,
bool  dirty 
)

Definition at line 47 of file pagevec.c.

void ceph_release_page_vector ( struct page **  pages,
int  num_pages 
)

Definition at line 60 of file pagevec.c.

void ceph_zero_page_vector_range ( int  off,
int  len,
struct page **  pages 
)

Definition at line 203 of file pagevec.c.

Variable Documentation

struct kmem_cache* ceph_cap_cachep

Definition at line 573 of file super.c.

struct kmem_cache* ceph_dentry_cachep

Definition at line 574 of file super.c.

struct kmem_cache* ceph_file_cachep

Definition at line 575 of file super.c.

struct kmem_cache* ceph_inode_cachep

Definition at line 572 of file super.c.