nfs-ganesha 1.4
Defines | Functions | Variables

fsal_internal.c File Reference

#include <rpc/rpc.h>
#include <rpc/xdr.h>
#include "nfs4.h"
#include "nfs_proto_functions.h"
#include "fsal_nfsv4_macros.h"
#include "fsal.h"
#include "fsal_internal.h"
#include "abstract_mem.h"
#include "SemN.h"
#include <pthread.h>

Go to the source code of this file.

Defines

#define FSAL_INTERNAL_C
#define PROXY_SUPPORTED_ATTRIBUTES

Functions

void fsal_increment_nbcall (int function_index, fsal_status_t status)
void fsal_internal_getstats (fsal_statistics_t *output_stats)
void TakeTokenFSCall ()
void ReleaseTokenFSCall ()
fsal_status_t fsal_internal_init_global (fsal_init_info_t *fsal_info, fs_common_initinfo_t *fs_common_info)
fsal_boolean_t fsal_do_log (fsal_status_t status)

Variables

fsal_staticfsinfo_t global_fs_info
fsal_staticfsinfo_t default_proxy_info
semaphore_t sem_fs_calls

Define Documentation

#define FSAL_INTERNAL_C

Definition at line 18 of file FSAL_PROXY/fsal_internal.c.

#define PROXY_SUPPORTED_ATTRIBUTES

Function Documentation

fsal_boolean_t fsal_do_log ( fsal_status_t  status)

fsal_do_log: Indicates if an FSAL error has to be traced into its log file in the NIV_EVENT level. (in the other cases, return codes are only logged in the NIV_FULL_DEBUG logging lovel).

Parameters:
status(input),:The fsal status that is to be tested.
Returns:
- TRUE if the error is to be traced.
  • FALSE if the error must not be traced except in NIV_FULL_DEBUG level.

Definition at line 355 of file FSAL_PROXY/fsal_internal.c.

void fsal_increment_nbcall ( int  function_index,
fsal_status_t  status 
)

fsal_increment_nbcall: Updates fonction call statistics.

Parameters:
function_index(input): Index of the function whom number of call is to be incremented.
status(input): Status the function returned.
Returns:
Nothing.

Definition at line 122 of file FSAL_PROXY/fsal_internal.c.

void fsal_internal_getstats ( fsal_statistics_t output_stats)

fsal_internal_getstats: (For internal use in the FSAL). Retrieve call statistics for current thread.

Parameters:
output_stats(output): Pointer to the call statistics structure.
Returns:
Nothing.

Definition at line 199 of file FSAL_PROXY/fsal_internal.c.

fsal_status_t fsal_internal_init_global ( fsal_init_info_t fsal_info,
fs_common_initinfo_t fs_common_info 
)

This function initializes shared variables of the FSAL.

Definition at line 272 of file FSAL_PROXY/fsal_internal.c.

void ReleaseTokenFSCall ( )

Definition at line 258 of file FSAL_PROXY/fsal_internal.c.

void TakeTokenFSCall ( )

Used to limit the number of simultaneous calls to Filesystem.

Definition at line 247 of file FSAL_PROXY/fsal_internal.c.


Variable Documentation

Definition at line 61 of file FSAL_PROXY/fsal_internal.c.

Definition at line 47 of file FSAL_PROXY/fsal_internal.c.

Definition at line 96 of file FSAL_PROXY/fsal_internal.c.