nfs-ganesha 1.4
|
#include "fsal.h"
#include "fsal_internal.h"
#include "SemN.h"
#include "fsal_convert.h"
#include <libgen.h>
#include <pthread.h>
#include <string.h>
#include <sys/types.h>
#include <mntent.h>
#include "abstract_mem.h"
Go to the source code of this file.
#define FSAL_INTERNAL_C |
Definition at line 36 of file FSAL_VFS/fsal_internal.c.
int fd_to_handle | ( | int | fd, |
void ** | hanp, | ||
size_t * | hlen | ||
) |
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 126 of file FSAL_VFS/fsal_internal.c.
fsal_status_t fsal_internal_fd2handle | ( | fsal_op_context_t * | p_context, |
int | fd, | ||
fsal_handle_t * | p_handle | ||
) |
Definition at line 394 of file FSAL_VFS/fsal_internal.c.
fsal_status_t fsal_internal_get_handle_at | ( | int | dfd, |
const char * | name, | ||
fsal_handle_t * | p_handle | ||
) |
fsal_internal_get_handle_at: Create a handle from a directory pointer and filename
dfd | (input): Open directory handle |
p_fsalname | (input): Name of the file |
p_handle | (output): The handle that is found and returned |
Definition at line 460 of file FSAL_VFS/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 203 of file FSAL_VFS/fsal_internal.c.
fsal_status_t fsal_internal_handle2fd | ( | fsal_op_context_t * | p_context, |
fsal_handle_t * | p_handle, | ||
int * | pfd, | ||
int | oflags | ||
) |
Gets a fd from a handle
fsal_internal_handle2fd: Open a file by handle within an export.
p_context | (input): Pointer to current context. Used to get export root fd. |
phandle | (input): Opaque filehandle |
pfd | (output): File descriptor openned by the function |
oflags | (input): Flags to open the file with |
Definition at line 359 of file FSAL_VFS/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 276 of file FSAL_VFS/fsal_internal.c.
fsal_status_t fsal_internal_Path2Handle | ( | fsal_op_context_t * | p_context, |
fsal_path_t * | p_fsalpath, | ||
fsal_handle_t * | p_handle | ||
) |
Get the handle for a path (posix or fid path)
Definition at line 425 of file FSAL_VFS/fsal_internal.c.
fsal_status_t fsal_internal_setattrs_symlink | ( | fsal_handle_t * | p_filehandle, |
fsal_op_context_t * | p_context, | ||
fsal_attrib_list_t * | p_attrib_set, | ||
fsal_attrib_list_t * | p_object_attributes | ||
) |
Definition at line 484 of file FSAL_VFS/fsal_internal.c.
void ReleaseTokenFSCall | ( | ) |
Definition at line 262 of file FSAL_VFS/fsal_internal.c.
void TakeTokenFSCall | ( | ) |
Used to limit the number of simultaneous calls to Filesystem.
Definition at line 251 of file FSAL_VFS/fsal_internal.c.
fsal_uint_t CredentialLifetime = 3600 |
Definition at line 57 of file FSAL_VFS/fsal_internal.c.
Definition at line 63 of file FSAL_VFS/fsal_internal.c.
Definition at line 100 of file FSAL_VFS/fsal_internal.c.