nfs-ganesha 1.4
Defines | Functions | Variables

fsal_proxy_clientid.c File Reference

#include <string.h>
#include <rpc/rpc.h>
#include <rpc/xdr.h>
#include <arpa/inet.h>
#include <pthread.h>
#include "nfs4.h"
#include "fsal_internal.h"
#include "fsal_convert.h"
#include "fsal_common.h"
#include "nfs_proto_functions.h"
#include "fsal_nfsv4_macros.h"

Go to the source code of this file.

Defines

#define FSAL_CLIENTID_NB_OP_ALLOC   1
#define FSAL_RENEW_LEASE_NB_OP_ALLOC   1

Functions

fsal_status_t FSAL_proxy_setclientid_renego (proxyfsal_op_context_t *p_context)
fsal_status_t FSAL_proxy_setclientid (proxyfsal_op_context_t *p_context)
void * FSAL_proxy_clientid_renewer_thread (void *Arg)

Variables

time_t ServerBootTime
clientid4 fsal_clientid
time_t clientid_renewed
pthread_mutex_t fsal_clientid_mutex = PTHREAD_MUTEX_INITIALIZER
pthread_mutex_t fsal_clientid_mutex_renew = PTHREAD_MUTEX_INITIALIZER
unsigned int done = 0

Define Documentation

#define FSAL_CLIENTID_NB_OP_ALLOC   1
#define FSAL_RENEW_LEASE_NB_OP_ALLOC   1

Function Documentation

void* FSAL_proxy_clientid_renewer_thread ( void *  Arg)

FSAL_proxy_clientid_renewer_thread: this thread is made for refreshing the clientid used by the FSAL, automatically.

This thread is made for refreshing the clientid used by the FSAL, automatically.

Returns:
never returns... This is a infinite loop that will die when the daemon stops

Todo:
: use getattr to have an actual value of server's lease duration
Todo:
: use getattr to have an actual value of server's lease duration

Definition at line 277 of file fsal_proxy_clientid.c.

fsal_status_t FSAL_proxy_setclientid ( proxyfsal_op_context_t p_context)

FSAL_proxy_setclientid: Client ID negociation, step 1

Parameters:
p_context(input): Authentication context for the operation (user,...).
Returns:
Major error codes :
  • ERR_FSAL_NO_ERROR (no error)
  • ERR_FSAL_FAULT (a NULL pointer was passed as mandatory argument)
  • Other error codes can be returned : ERR_FSAL_ACCESS, ERR_FSAL_IO, ...

Definition at line 238 of file fsal_proxy_clientid.c.

fsal_status_t FSAL_proxy_setclientid_renego ( proxyfsal_op_context_t p_context)

FSAL_proxy_setclientid_renego:

Parameters:
p_context(input): Authentication context for the operation (user,...).
Returns:
Major error codes :
  • ERR_FSAL_NO_ERROR (no error)
  • ERR_FSAL_FAULT (a NULL pointer was passed as mandatory argument)
  • Other error codes can be returned : ERR_FSAL_ACCESS, ERR_FSAL_IO, ...

Definition at line 209 of file fsal_proxy_clientid.c.


Variable Documentation

Definition at line 44 of file fsal_proxy_clientid.c.

unsigned int done = 0

Definition at line 47 of file fsal_proxy_clientid.c.

Definition at line 43 of file fsal_proxy_clientid.c.

pthread_mutex_t fsal_clientid_mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 45 of file fsal_proxy_clientid.c.

pthread_mutex_t fsal_clientid_mutex_renew = PTHREAD_MUTEX_INITIALIZER

Definition at line 46 of file fsal_proxy_clientid.c.

Definition at line 53 of file Convert_FSAL_Handle.c.