nfs-ganesha 1.4
|
#include "fsal.h"
#include "fsal_internal.h"
#include "fsal_convert.h"
#include "fsal_common.h"
#include <string.h>
Go to the source code of this file.
Functions | |
fsal_status_t | ZFSFSAL_opendir (fsal_handle_t *dir_hdl, fsal_op_context_t *p_context, fsal_dir_t *dir_desc, fsal_attrib_list_t *dir_attributes) |
fsal_status_t | ZFSFSAL_readdir (fsal_dir_t *dir_desc, fsal_cookie_t start_pos, fsal_attrib_mask_t get_attr_mask, fsal_mdsize_t buffersize, fsal_dirent_t *p_dirent, fsal_cookie_t *end_pos, fsal_count_t *nb_entries, fsal_boolean_t *end_of_dir) |
fsal_status_t | ZFSFSAL_closedir (fsal_dir_t *dir_desc) |
Variables | |
size_t | i_snapshots |
snapshot_t * | p_snapshots |
time_t | ServerBootTime |
fsal_status_t ZFSFSAL_closedir | ( | fsal_dir_t * | dir_desc | ) |
FSAL_closedir : Free the resources allocated for reading directory entries.
dir_descriptor | (input): Pointer to a directory descriptor filled by FSAL_opendir. |
Definition at line 308 of file FSAL_ZFS/fsal_dirs.c.
fsal_status_t ZFSFSAL_opendir | ( | fsal_handle_t * | dir_hdl, |
fsal_op_context_t * | p_context, | ||
fsal_dir_t * | dir_desc, | ||
fsal_attrib_list_t * | dir_attributes | ||
) |
FSAL_opendir : Opens a directory for reading its content.
dir_handle | (input) the handle of the directory to be opened. |
p_context | (input) Permission context for the operation (user, export context...). |
dir_descriptor | (output) pointer to an allocated structure that will receive directory stream informations, on successfull completion. |
dir_attributes | (optional output) On successfull completion,the structure pointed by dir_attributes receives the new directory attributes. Can be NULL. |
Definition at line 52 of file FSAL_ZFS/fsal_dirs.c.
fsal_status_t ZFSFSAL_readdir | ( | fsal_dir_t * | dir_desc, |
fsal_cookie_t | start_pos, | ||
fsal_attrib_mask_t | get_attr_mask, | ||
fsal_mdsize_t | buffersize, | ||
fsal_dirent_t * | p_dirent, | ||
fsal_cookie_t * | end_pos, | ||
fsal_count_t * | nb_entries, | ||
fsal_boolean_t * | end_of_dir | ||
) |
FSAL_readdir : Read the entries of an opened directory.
dir_descriptor | (input): Pointer to the directory descriptor filled by FSAL_opendir. |
start_position | (input): Cookie that indicates the first object to be read during this readdir operation. This should be :
|
get_attr_mask | (input) Specify the set of attributes to be retrieved for directory entries. |
buffersize | (input) The size (in bytes) of the buffer where the direntries are to be stored. |
p_dirent | (output) Adresse of the buffer where the direntries are to be stored. |
end_position | (output) Cookie that indicates the current position in the directory. |
nb_entries | (output) Pointer to the number of entries read during the call. |
end_of_dir | (output) Pointer to a boolean that indicates if the end of dir has been reached during the call. |
Definition at line 145 of file FSAL_ZFS/fsal_dirs.c.
size_t i_snapshots |
Common FS tools for internal use in the FSAL.
Definition at line 35 of file FSAL_ZFS/fsal_internal.c.
Definition at line 36 of file FSAL_ZFS/fsal_internal.c.
time_t ServerBootTime |
Definition at line 53 of file Convert_FSAL_Handle.c.