nfs-ganesha 1.4
Functions

nlm_util.h File Reference

#include "nlm_list.h"
#include "nlm4.h"
#include "sal_functions.h"

Go to the source code of this file.

Functions

bool_t nlm_block_data_to_fsal_context (state_block_data_t *block_data, fsal_op_context_t *fsal_context)
const char * lock_result_str (int rc)
netobj * copy_netobj (netobj *dst, netobj *src)
void netobj_free (netobj *obj)
void netobj_to_string (netobj *obj, char *buffer, int maxlen)
int nlm_process_parameters (struct svc_req *preq, bool_t exclusive, nlm4_lock *alock, fsal_lock_param_t *plock, cache_entry_t **ppentry, fsal_op_context_t *pcontext, care_t care, state_nsm_client_t **ppnsm_client, state_nlm_client_t **ppnlm_client, state_owner_t **ppowner, state_block_data_t **ppblock_data)
int nlm_process_share_parms (struct svc_req *preq, nlm4_share *share, cache_entry_t **ppentry, fsal_op_context_t *pcontext, care_t care, state_nsm_client_t **ppnsm_client, state_nlm_client_t **ppnlm_client, state_owner_t **ppowner)
void nlm_process_conflict (nlm4_holder *nlm_holder, state_owner_t *holder, fsal_lock_param_t *conflict)
nlm4_stats nlm_convert_state_error (state_status_t status)
state_status_t nlm_granted_callback (cache_entry_t *pentry, state_lock_entry_t *lock_entry, state_status_t *pstatus)

Function Documentation

netobj* copy_netobj ( netobj *  dst,
netobj *  src 
)

Definition at line 119 of file nlm_util.c.

const char* lock_result_str ( int  rc)

Definition at line 75 of file nlm_util.c.

void netobj_free ( netobj *  obj)

Definition at line 138 of file nlm_util.c.

void netobj_to_string ( netobj *  obj,
char *  buffer,
int  maxlen 
)

Definition at line 144 of file nlm_util.c.

bool_t nlm_block_data_to_fsal_context ( state_block_data_t block_data,
fsal_op_context_t fsal_context 
)

Definition at line 587 of file nlm_util.c.

nlm4_stats nlm_convert_state_error ( state_status_t  status)

Definition at line 568 of file nlm_util.c.

state_status_t nlm_granted_callback ( cache_entry_t pentry,
state_lock_entry_t lock_entry,
state_status_t pstatus 
)

Definition at line 656 of file nlm_util.c.

void nlm_process_conflict ( nlm4_holder nlm_holder,
state_owner_t holder,
fsal_lock_param_t conflict 
)

Definition at line 523 of file nlm_util.c.

int nlm_process_parameters ( struct svc_req *  preq,
bool_t  exclusive,
nlm4_lock alock,
fsal_lock_param_t plock,
cache_entry_t **  ppentry,
fsal_op_context_t pcontext,
care_t  care,
state_nsm_client_t **  ppnsm_client,
state_nlm_client_t **  ppnlm_client,
state_owner_t **  ppowner,
state_block_data_t **  ppblock_data 
)

process_nlm_parameters: Process NLM parameters

Returns -1 for a request that needs processing, otherwise returns an NLM status

preq: passed in so interface doesn't need to change when NLM Client uses IP address exclusive: TRUE if lock is a write lock alock: nlm4_lock request structure plock: cache_lock_desc_t to fill in from alock ppentry: cache inode entry pointer to fill in pcontext: FSAL op context pclient: cache inode client care: TRUE if this caller cares if an owner is found (otherwise return NLM4_GRANTED because the caller will have nothing to do) ppnlm_client: NLM Client to fill in, returns a reference to the client ppowner: NLM Owner to fill in, returns a reference to the owner ppblock_data: Data required to make a call back to the client to grant a blocked lock

Definition at line 262 of file nlm_util.c.

int nlm_process_share_parms ( struct svc_req *  preq,
nlm4_share share,
cache_entry_t **  ppentry,
fsal_op_context_t pcontext,
care_t  care,
state_nsm_client_t **  ppnsm_client,
state_nlm_client_t **  ppnlm_client,
state_owner_t **  ppowner 
)

Definition at line 415 of file nlm_util.c.