glusterfs  8.2
About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 8.x (latest version).
  Fossies Dox: glusterfs-8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

server-helpers.h File Reference
#include "server.h"
#include <glusterfs/defaults.h>
Include dependency graph for server-helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CALL_STATE(frame)   ((server_state_t *)frame->root->state)
 
#define XPRT_FROM_FRAME(frame)   ((rpc_transport_t *)CALL_STATE(frame)->xprt)
 
#define SERVER_CONF(frame)    ((server_conf_t *)XPRT_FROM_FRAME(frame)->this->private)
 
#define XPRT_FROM_XLATOR(this)   ((((server_conf_t *)this->private))->listen)
 
#define INODE_LRU_LIMIT(this)    (((server_conf_t *)(this->private))->config.inode_lru_limit)
 
#define IS_ROOT_INODE(inode)   (inode == inode->table->root)
 
#define IS_NOT_ROOT(pathlen)   ((pathlen > 2) ? 1 : 0)
 

Functions

void free_state (server_state_t *state)
 
void server_loc_wipe (loc_t *loc)
 
void server_print_request (call_frame_t *frame)
 
call_frame_tget_frame_from_request (rpcsvc_request_t *req)
 
int server_connection_cleanup (xlator_t *this, struct _client *client, int32_t flags, bool *fd_exist)
 
int server_build_config (xlator_t *this, server_conf_t *conf)
 
int serialize_rsp_dirent (gf_dirent_t *entries, gfs3_readdir_rsp *rsp)
 
int serialize_rsp_direntp (gf_dirent_t *entries, gfs3_readdirp_rsp *rsp)
 
int readdirp_rsp_cleanup (gfs3_readdirp_rsp *rsp)
 
int readdir_rsp_cleanup (gfs3_readdir_rsp *rsp)
 
int readdirp_rsp_cleanup_v2 (gfx_readdirp_rsp *rsp)
 
int readdir_rsp_cleanup_v2 (gfx_readdir_rsp *rsp)
 
int auth_set_username_passwd (dict_t *input_params, dict_t *config_params, struct _client *client)
 
server_ctx_tserver_ctx_get (client_t *client, xlator_t *xlator)
 
int server_process_event_upcall (xlator_t *this, void *data)
 
inode_tserver_inode_new (inode_table_t *itable, uuid_t gfid)
 
int serialize_rsp_locklist (lock_migration_info_t *locklist, gfs3_getactivelk_rsp *rsp)
 
int serialize_rsp_locklist_v2 (lock_migration_info_t *locklist, gfx_getactivelk_rsp *rsp)
 
int getactivelkinfo_rsp_cleanup (gfs3_getactivelk_rsp *rsp)
 
int getactivelkinfo_rsp_cleanup_v2 (gfx_getactivelk_rsp *rsp)
 
int unserialize_req_locklist (gfs3_setactivelk_req *req, lock_migration_info_t *lmi)
 
int unserialize_req_locklist_v2 (gfx_setactivelk_req *req, lock_migration_info_t *lmi)
 
int serialize_rsp_dirent_v2 (gf_dirent_t *entries, gfx_readdir_rsp *rsp)
 
int serialize_rsp_direntp_v2 (gf_dirent_t *entries, gfx_readdirp_rsp *rsp)
 

Macro Definition Documentation

◆ CALL_STATE

#define CALL_STATE (   frame)    ((server_state_t *)frame->root->state)

Definition at line 17 of file server-helpers.h.

◆ INODE_LRU_LIMIT

#define INODE_LRU_LIMIT (   this)     (((server_conf_t *)(this->private))->config.inode_lru_limit)

Definition at line 26 of file server-helpers.h.

◆ IS_NOT_ROOT

#define IS_NOT_ROOT (   pathlen)    ((pathlen > 2) ? 1 : 0)

Definition at line 31 of file server-helpers.h.

◆ IS_ROOT_INODE

#define IS_ROOT_INODE (   inode)    (inode == inode->table->root)

Definition at line 29 of file server-helpers.h.

◆ SERVER_CONF

#define SERVER_CONF (   frame)     ((server_conf_t *)XPRT_FROM_FRAME(frame)->this->private)

Definition at line 21 of file server-helpers.h.

◆ XPRT_FROM_FRAME

#define XPRT_FROM_FRAME (   frame)    ((rpc_transport_t *)CALL_STATE(frame)->xprt)

Definition at line 19 of file server-helpers.h.

◆ XPRT_FROM_XLATOR

#define XPRT_FROM_XLATOR (   this)    ((((server_conf_t *)this->private))->listen)

Definition at line 24 of file server-helpers.h.

Function Documentation

◆ auth_set_username_passwd()

◆ free_state()

◆ get_frame_from_request()

◆ getactivelkinfo_rsp_cleanup()

int getactivelkinfo_rsp_cleanup ( gfs3_getactivelk_rsp *  rsp)

Definition at line 1202 of file server-helpers.c.

References GF_FREE.

Referenced by server_getactivelk_cbk().

◆ getactivelkinfo_rsp_cleanup_v2()

int getactivelkinfo_rsp_cleanup_v2 ( gfx_getactivelk_rsp *  rsp)

Definition at line 1219 of file server-helpers.c.

References GF_FREE.

Referenced by server4_getactivelk_cbk().

◆ readdir_rsp_cleanup()

int readdir_rsp_cleanup ( gfs3_readdir_rsp *  rsp)

Definition at line 1055 of file server-helpers.c.

References GF_FREE.

Referenced by server_readdir_cbk().

◆ readdir_rsp_cleanup_v2()

int readdir_rsp_cleanup_v2 ( gfx_readdir_rsp *  rsp)

Definition at line 1090 of file server-helpers.c.

References GF_FREE.

Referenced by server4_readdir_cbk().

◆ readdirp_rsp_cleanup()

int readdirp_rsp_cleanup ( gfs3_readdirp_rsp *  rsp)

Definition at line 1072 of file server-helpers.c.

References GF_FREE.

Referenced by server_readdirp_cbk().

◆ readdirp_rsp_cleanup_v2()

int readdirp_rsp_cleanup_v2 ( gfx_readdirp_rsp *  rsp)

Definition at line 1107 of file server-helpers.c.

References GF_FREE.

Referenced by server4_readdirp_cbk().

◆ serialize_rsp_dirent()

int serialize_rsp_dirent ( gf_dirent_t entries,
gfs3_readdir_rsp *  rsp 
)

◆ serialize_rsp_dirent_v2()

int serialize_rsp_dirent_v2 ( gf_dirent_t entries,
gfx_readdir_rsp *  rsp 
)

◆ serialize_rsp_direntp()

◆ serialize_rsp_direntp_v2()

◆ serialize_rsp_locklist()

int serialize_rsp_locklist ( lock_migration_info_t locklist,
gfs3_getactivelk_rsp *  rsp 
)

Definition at line 1179 of file server-helpers.c.

References common_rsp_locklist(), GF_VALIDATE_OR_GOTO, and out.

Referenced by server_getactivelk_cbk().

◆ serialize_rsp_locklist_v2()

int serialize_rsp_locklist_v2 ( lock_migration_info_t locklist,
gfx_getactivelk_rsp *  rsp 
)

Definition at line 1190 of file server-helpers.c.

References common_rsp_locklist(), GF_VALIDATE_OR_GOTO, and out.

Referenced by server4_getactivelk_cbk().

◆ server_build_config()

◆ server_connection_cleanup()

◆ server_ctx_get()

server_ctx_t* server_ctx_get ( client_t client,
xlator_t xlator 
)

Definition at line 1292 of file server-helpers.c.

◆ server_inode_new()

inode_t* server_inode_new ( inode_table_t itable,
uuid_t  gfid 
)

◆ server_loc_wipe()

void server_loc_wipe ( loc_t loc)

Definition at line 144 of file server-helpers.c.

References GF_FREE, _loc::inode, inode_unref(), _loc::parent, and _loc::path.

Referenced by free_state().

◆ server_print_request()

◆ server_process_event_upcall()

◆ unserialize_req_locklist()

◆ unserialize_req_locklist_v2()