|
nfs-ganesha 1.4
|
#include "fsal_internal.h"#include "SemN.h"#include "fsal_convert.h"#include <libgen.h>#include <pthread.h>#include <string.h>#include "abstract_mem.h"Go to the source code of this file.
| #define FIDDIR ".lustre/fid" |
Definition at line 391 of file FSAL_LUSTRE/fsal_internal.c.
| #define FIDDIRLEN 11 |
Definition at line 392 of file FSAL_LUSTRE/fsal_internal.c.
| #define FSAL_INTERNAL_C |
Definition at line 15 of file FSAL_LUSTRE/fsal_internal.c.
| void fsal_increment_nbcall | ( | int | function_index, |
| fsal_status_t | status | ||
| ) |
fsal_increment_nbcall: Updates fonction call statistics.
| function_index | (input): Index of the function whom number of call is to be incremented. |
| status | (input): Status the function returned. |
Definition at line 101 of file FSAL_LUSTRE/fsal_internal.c.
| fsal_status_t fsal_internal_appendNameToPath | ( | fsal_path_t * | p_path, |
| const fsal_name_t * | p_name | ||
| ) |
p_path <- p_path + '/' + p_name
| p_path | |
| p_name |
Definition at line 361 of file FSAL_LUSTRE/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.
| output_stats | (output): Pointer to the call statistics structure. |
Definition at line 178 of file FSAL_LUSTRE/fsal_internal.c.
| fsal_status_t fsal_internal_Handle2FidPath | ( | fsal_op_context_t * | context, |
| fsal_handle_t * | p_handle, | ||
| fsal_path_t * | p_fsalpath | ||
| ) |
Build .lustre/fid path associated to a handle.
Definition at line 397 of file FSAL_LUSTRE/fsal_internal.c.
| fsal_status_t fsal_internal_init_global | ( | fsal_init_info_t * | fsal_info, |
| fs_common_initinfo_t * | fs_common_info, | ||
| fs_specific_initinfo_t * | fs_specific_info | ||
| ) |
This function initializes shared variables of the FSAL.
Definition at line 266 of file FSAL_LUSTRE/fsal_internal.c.
| fsal_status_t fsal_internal_Path2Handle | ( | fsal_op_context_t * | p_context, |
| fsal_path_t * | p_fsalpath, | ||
| fsal_handle_t * | handle | ||
| ) |
Get the handle for a path (posix or fid path)
Definition at line 429 of file FSAL_LUSTRE/fsal_internal.c.
| void fsal_internal_SetCredentialLifetime | ( | fsal_uint_t | lifetime_in | ) |
Set credential lifetime. (For internal use in the FSAL). Set the period for thread's credential renewal.
| lifetime_in | (input): The period for thread's credential renewal. |
Definition at line 233 of file FSAL_LUSTRE/fsal_internal.c.
| fsal_status_t fsal_internal_testAccess | ( | fsal_op_context_t * | p_context, |
| fsal_accessflags_t | access_type, | ||
| struct stat * | p_buffstat, | ||
| fsal_attrib_list_t * | p_object_attributes | ||
| ) |
test the access to a file from its POSIX attributes (struct stat) OR its FSAL attributes (fsal_attrib_list_t).
Definition at line 473 of file FSAL_LUSTRE/fsal_internal.c.
| void ReleaseTokenFSCall | ( | ) |
Definition at line 252 of file FSAL_LUSTRE/fsal_internal.c.
| void TakeTokenFSCall | ( | ) |
Used to limit the number of simultaneous calls to Filesystem.
Definition at line 241 of file FSAL_LUSTRE/fsal_internal.c.
| fsal_uint_t CredentialLifetime = 3600 |
Definition at line 30 of file FSAL_LUSTRE/fsal_internal.c.
Definition at line 36 of file FSAL_LUSTRE/fsal_internal.c.
Definition at line 75 of file FSAL_LUSTRE/fsal_internal.c.
1.7.3