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

Go to the source code of this file.

Data Structures

struct  ceph_mds_reply_info_in
 
struct  ceph_mds_reply_info_parsed
 
struct  ceph_mds_session
 
struct  ceph_mds_request
 
struct  ceph_mds_client
 

Macros

#define CEPH_CAPS_PER_RELEASE
 

Typedefs

typedef void(* ceph_mds_request_callback_t )(struct ceph_mds_client *mdsc, struct ceph_mds_request *req)
 

Enumerations

enum  {
  CEPH_MDS_SESSION_NEW = 1, CEPH_MDS_SESSION_OPENING = 2, CEPH_MDS_SESSION_OPEN = 3, CEPH_MDS_SESSION_HUNG = 4,
  CEPH_MDS_SESSION_CLOSING = 5, CEPH_MDS_SESSION_RESTARTING = 6, CEPH_MDS_SESSION_RECONNECTING = 7
}
 
enum  { USE_ANY_MDS, USE_RANDOM_MDS, USE_AUTH_MDS }
 

Functions

const charceph_mds_op_name (int op)
 
struct ceph_mds_session__ceph_lookup_mds_session (struct ceph_mds_client *, int mds)
 
void ceph_put_mds_session (struct ceph_mds_session *s)
 
int ceph_send_msg_mds (struct ceph_mds_client *mdsc, struct ceph_msg *msg, int mds)
 
int ceph_mdsc_init (struct ceph_fs_client *fsc)
 
void ceph_mdsc_close_sessions (struct ceph_mds_client *mdsc)
 
void ceph_mdsc_destroy (struct ceph_fs_client *fsc)
 
void ceph_mdsc_sync (struct ceph_mds_client *mdsc)
 
void ceph_mdsc_lease_release (struct ceph_mds_client *mdsc, struct inode *inode, struct dentry *dn)
 
void ceph_invalidate_dir_request (struct ceph_mds_request *req)
 
struct ceph_mds_requestceph_mdsc_create_request (struct ceph_mds_client *mdsc, int op, int mode)
 
void ceph_mdsc_submit_request (struct ceph_mds_client *mdsc, struct ceph_mds_request *req)
 
int ceph_mdsc_do_request (struct ceph_mds_client *mdsc, struct inode *dir, struct ceph_mds_request *req)
 
void ceph_mdsc_release_request (struct kref *kref)
 
int ceph_add_cap_releases (struct ceph_mds_client *mdsc, struct ceph_mds_session *session)
 
void ceph_send_cap_releases (struct ceph_mds_client *mdsc, struct ceph_mds_session *session)
 
void ceph_mdsc_pre_umount (struct ceph_mds_client *mdsc)
 
charceph_mdsc_build_path (struct dentry *dentry, int *plen, u64 *base, int stop_on_nosnap)
 
void __ceph_mdsc_drop_dentry_lease (struct dentry *dentry)
 
void ceph_mdsc_lease_send_msg (struct ceph_mds_session *session, struct inode *inode, struct dentry *dentry, char action, u32 seq)
 
void ceph_mdsc_handle_map (struct ceph_mds_client *mdsc, struct ceph_msg *msg)
 
void ceph_mdsc_open_export_target_sessions (struct ceph_mds_client *mdsc, struct ceph_mds_session *session)
 

Macro Definition Documentation

#define CEPH_CAPS_PER_RELEASE
Value:
sizeof(struct ceph_mds_cap_release)) / \
sizeof(struct ceph_mds_cap_item))

Definition at line 89 of file mds_client.h.

Typedef Documentation

typedef void(* ceph_mds_request_callback_t)(struct ceph_mds_client *mdsc, struct ceph_mds_request *req)

Definition at line 159 of file mds_client.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CEPH_MDS_SESSION_NEW 
CEPH_MDS_SESSION_OPENING 
CEPH_MDS_SESSION_OPEN 
CEPH_MDS_SESSION_HUNG 
CEPH_MDS_SESSION_CLOSING 
CEPH_MDS_SESSION_RESTARTING 
CEPH_MDS_SESSION_RECONNECTING 

Definition at line 97 of file mds_client.h.

anonymous enum
Enumerator:
USE_ANY_MDS 
USE_RANDOM_MDS 
USE_AUTH_MDS 

Definition at line 147 of file mds_client.h.

Function Documentation

struct ceph_mds_session* __ceph_lookup_mds_session ( struct ceph_mds_client ,
int  mds 
)
read

Definition at line 349 of file mds_client.c.

void __ceph_mdsc_drop_dentry_lease ( struct dentry dentry)

Definition at line 2702 of file mds_client.c.

int ceph_add_cap_releases ( struct ceph_mds_client mdsc,
struct ceph_mds_session session 
)

Definition at line 1215 of file mds_client.c.

void ceph_invalidate_dir_request ( struct ceph_mds_request req)

Definition at line 1999 of file mds_client.c.

const char* ceph_mds_op_name ( int  op)

Definition at line 47 of file strings.c.

char* ceph_mdsc_build_path ( struct dentry dentry,
int plen,
u64 base,
int  stop_on_nosnap 
)

Definition at line 1448 of file mds_client.c.

void ceph_mdsc_close_sessions ( struct ceph_mds_client mdsc)

Definition at line 3169 of file mds_client.c.

struct ceph_mds_request* ceph_mdsc_create_request ( struct ceph_mds_client mdsc,
int  op,
int  mode 
)
read

Definition at line 1392 of file mds_client.c.

void ceph_mdsc_destroy ( struct ceph_fs_client fsc)

Definition at line 3231 of file mds_client.c.

int ceph_mdsc_do_request ( struct ceph_mds_client mdsc,
struct inode dir,
struct ceph_mds_request req 
)

Definition at line 1923 of file mds_client.c.

void ceph_mdsc_handle_map ( struct ceph_mds_client mdsc,
struct ceph_msg msg 
)

Definition at line 3250 of file mds_client.c.

int ceph_mdsc_init ( struct ceph_fs_client fsc)

Definition at line 2986 of file mds_client.c.

void ceph_mdsc_lease_release ( struct ceph_mds_client mdsc,
struct inode inode,
struct dentry dn 
)

Definition at line 2854 of file mds_client.c.

void ceph_mdsc_lease_send_msg ( struct ceph_mds_session session,
struct inode inode,
struct dentry dentry,
char  action,
u32  seq 
)

Definition at line 2814 of file mds_client.c.

void ceph_mdsc_open_export_target_sessions ( struct ceph_mds_client mdsc,
struct ceph_mds_session session 
)

Definition at line 845 of file mds_client.c.

void ceph_mdsc_pre_umount ( struct ceph_mds_client mdsc)

Definition at line 3067 of file mds_client.c.

void ceph_mdsc_release_request ( struct kref kref)

Definition at line 476 of file mds_client.c.

void ceph_mdsc_submit_request ( struct ceph_mds_client mdsc,
struct ceph_mds_request req 
)

Definition at line 1909 of file mds_client.c.

void ceph_mdsc_sync ( struct ceph_mds_client mdsc)

Definition at line 3128 of file mds_client.c.

void ceph_put_mds_session ( struct ceph_mds_session s)

Definition at line 333 of file mds_client.c.

void ceph_send_cap_releases ( struct ceph_mds_client mdsc,
struct ceph_mds_session session 
)

Definition at line 1326 of file mds_client.c.

int ceph_send_msg_mds ( struct ceph_mds_client mdsc,
struct ceph_msg msg,
int  mds 
)