|
nfs-ganesha 1.4
|
#include <assert.h>#include "fsal.h"#include "fsal_internal.h"#include "fsal_convert.h"#include "config_parsing.h"#include <string.h>Go to the source code of this file.
Defines | |
| #define | STRCMP strcasecmp |
Functions | |
| char * | XFSFSAL_GetFSName () |
| int | XFSFSAL_handlecmp (fsal_handle_t *hdl1, fsal_handle_t *hdl2, fsal_status_t *status) |
| unsigned int | XFSFSAL_Handle_to_HashIndex (fsal_handle_t *handle, unsigned int cookie, unsigned int alphabet_len, unsigned int index_size) |
| unsigned int | XFSFSAL_Handle_to_RBTIndex (fsal_handle_t *handle, unsigned int cookie) |
| fsal_status_t | XFSFSAL_DigestHandle (fsal_export_context_t *p_expcontext, fsal_digesttype_t output_type, fsal_handle_t *handle, struct fsal_handle_desc *fh_desc) |
| fsal_status_t | XFSFSAL_ExpandHandle (fsal_export_context_t *p_expcontext, fsal_digesttype_t in_type, struct fsal_handle_desc *fh_desc) |
| fsal_status_t | XFSFSAL_SetDefault_FS_specific_parameter (fsal_parameter_t *out_parameter) |
| fsal_status_t | XFSFSAL_load_FS_specific_parameter_from_conf (config_file_t in_config, fsal_parameter_t *out_parameter) |
| #define STRCMP strcasecmp |
Definition at line 46 of file FSAL_XFS/fsal_tools.c.
| fsal_status_t XFSFSAL_DigestHandle | ( | fsal_export_context_t * | p_expcontext, |
| fsal_digesttype_t | output_type, | ||
| fsal_handle_t * | handle, | ||
| struct fsal_handle_desc * | fh_desc | ||
| ) |
FSAL_DigestHandle : Convert an xfsfsal_handle_t to a buffer to be included into NFS handles, or another digest.
| output_type | (input): Indicates the type of digest to do. |
| in_fsal_handle | (input): The handle to be converted to digest. |
| fh_desc | (input/output): The buffer where the digest is to be stored. On input fh_desc->len is set to the size of the buffer, on return fh_desc->len is used to indicate how many bytes have been copied into the buffer at fh_desc->start. |
Definition at line 222 of file FSAL_XFS/fsal_tools.c.
| fsal_status_t XFSFSAL_ExpandHandle | ( | fsal_export_context_t * | p_expcontext, |
| fsal_digesttype_t | in_type, | ||
| struct fsal_handle_desc * | fh_desc | ||
| ) |
FSAL_ExpandHandle : Verify handle - mostly used to check that the size matches.
| in_type | (input): Indicates the type of digest to be expanded. |
| fh_desc | (input/output): The handle built from digest. |
Definition at line 287 of file FSAL_XFS/fsal_tools.c.
| char* XFSFSAL_GetFSName | ( | ) |
Definition at line 48 of file FSAL_XFS/fsal_tools.c.
| unsigned int XFSFSAL_Handle_to_HashIndex | ( | fsal_handle_t * | handle, |
| unsigned int | cookie, | ||
| unsigned int | alphabet_len, | ||
| unsigned int | index_size | ||
| ) |
FSAL_Handle_to_HashIndex This function is used for hashing a FSAL handle in order to dispatch entries into the hash table array.
| p_handle | The handle to be hashed |
| cookie | Makes it possible to have different hash value for the same handle, when cookie changes. |
| alphabet_len | Parameter for polynomial hashing algorithm |
| index_size | The range of hash value will be [0..index_size-1] |
Definition at line 103 of file FSAL_XFS/fsal_tools.c.
| unsigned int XFSFSAL_Handle_to_RBTIndex | ( | fsal_handle_t * | handle, |
| unsigned int | cookie | ||
| ) |
Definition at line 154 of file FSAL_XFS/fsal_tools.c.
| int XFSFSAL_handlecmp | ( | fsal_handle_t * | hdl1, |
| fsal_handle_t * | hdl2, | ||
| fsal_status_t * | status | ||
| ) |
FSAL_handlecmp: Compare 2 handles.
| handle1 | (input): The first handle to be compared. |
| handle2 | (input): The second handle to be compared. |
| status | (output): The status of the compare operation. |
Definition at line 69 of file FSAL_XFS/fsal_tools.c.
| fsal_status_t XFSFSAL_load_FS_specific_parameter_from_conf | ( | config_file_t | in_config, |
| fsal_parameter_t * | out_parameter | ||
| ) |
FSAL_load_FSAL_parameter_from_conf, FSAL_load_FS_common_parameter_from_conf, FSAL_load_FS_specific_parameter_from_conf:
Those functions initialize the FSAL init parameter structure from a configuration structure.
| in_config | (input): Structure that represents the parsed configuration file. |
| out_parameter | (ouput) FSAL initialization structure filled according to the configuration file given as parameter. |
Definition at line 412 of file FSAL_XFS/fsal_tools.c.
| fsal_status_t XFSFSAL_SetDefault_FS_specific_parameter | ( | fsal_parameter_t * | out_parameter | ) |
Those routines set the default parameters for FSAL init structure.
Definition at line 358 of file FSAL_XFS/fsal_tools.c.
1.7.3