nfs-ganesha 1.4
|
Go to the source code of this file.
fsal_status_t FSAL_close | ( | fsal_file_t * | file_descriptor | ) |
FSAL_close: Free the resources allocated by the FSAL_open call.
file_descriptor | (input): The file descriptor returned by FSAL_open. |
Definition at line 286 of file FSAL_TEMPLATE/fsal_fileop.c.
fsal_status_t FSAL_close_by_fileid | ( | fsal_file_t * | file_descriptor, |
fsal_u64_t | fileid | ||
) |
Definition at line 319 of file FSAL_TEMPLATE/fsal_fileop.c.
fsal_status_t FSAL_open | ( | fsal_handle_t * | filehandle, |
fsal_op_context_t * | p_context, | ||
fsal_openflags_t | openflags, | ||
fsal_file_t * | file_descriptor, | ||
fsal_attrib_list_t * | file_attributes | ||
) |
FSAL_open: Open a regular file for reading/writing its data content.
filehandle | (input): Handle of the file to be read/modified. |
cred | (input): Authentication context for the operation (user,...). |
openflags | (input): Flags that indicates behavior for file opening and access. This is an inclusive OR of the following values ( such of them are not compatible) :
|
file_descriptor | (output): The file descriptor to be used for FSAL_read/write operations. |
file_attributes | (optionnal input/output): Post operation attributes. As input, it defines the attributes that the caller wants to retrieve (by positioning flags into this structure) and the output is built considering this input (it fills the structure according to the flags it contains). |
Definition at line 57 of file FSAL_TEMPLATE/fsal_fileop.c.
fsal_status_t FSAL_open_by_fileid | ( | fsal_handle_t * | filehandle, |
fsal_u64_t | fileid, | ||
fsal_op_context_t * | p_context, | ||
fsal_openflags_t | openflags, | ||
fsal_file_t * | file_descriptor, | ||
fsal_attrib_list_t * | file_attributes | ||
) |
Definition at line 309 of file FSAL_TEMPLATE/fsal_fileop.c.
fsal_status_t FSAL_open_by_name | ( | fsal_handle_t * | dirhandle, |
fsal_name_t * | filename, | ||
fsal_op_context_t * | p_context, | ||
fsal_openflags_t | openflags, | ||
fsal_file_t * | file_descriptor, | ||
fsal_attrib_list_t * | file_attributes | ||
) |
FSAL_open_byname: Open a regular file for reading/writing its data content.
dirhandle | (input): Handle of the directory that contain the file to be read/modified. |
filename | (input): Name of the file to be read/modified |
cred | (input): Authentication context for the operation (user,...). |
openflags | (input): Flags that indicates behavior for file opening and access. This is an inclusive OR of the following values ( such of them are not compatible) :
|
file_descriptor | (output): The file descriptor to be used for FSAL_read/write operations. |
file_attributes | (optionnal input/output): Post operation attributes. As input, it defines the attributes that the caller wants to retrieve (by positioning flags into this structure) and the output is built considering this input (it fills the structure according to the flags it contains). |
Definition at line 142 of file FSAL_TEMPLATE/fsal_fileop.c.
fsal_status_t FSAL_read | ( | fsal_file_t * | file_descriptor, |
fsal_seek_t * | seek_descriptor, | ||
fsal_size_t | buffer_size, | ||
caddr_t | buffer, | ||
fsal_size_t * | read_amount, | ||
fsal_boolean_t * | end_of_file | ||
) |
FSAL_read: Perform a read operation on an opened file.
file_descriptor | (input): The file descriptor returned by FSAL_open. |
seek_descriptor | (optional input): Specifies the position where data is to be read. If not specified, data will be read at the current position. |
buffer_size | (input): Amount (in bytes) of data to be read. |
buffer | (output): Address where the read data is to be stored in memory. |
read_amount | (output): Pointer to the amount of data (in bytes) that have been read during this call. |
end_of_file | (output): Pointer to a boolean that indicates whether the end of file has been reached during this call. |
Definition at line 190 of file FSAL_TEMPLATE/fsal_fileop.c.
fsal_status_t FSAL_write | ( | fsal_file_t * | file_descriptor, |
fsal_op_context_t * | p_context, | ||
fsal_seek_t * | seek_descriptor, | ||
fsal_size_t | buffer_size, | ||
caddr_t | buffer, | ||
fsal_size_t * | write_amount | ||
) |
FSAL_write: Perform a write operation on an opened file.
file_descriptor | (input): The file descriptor returned by FSAL_open. |
p_context | (input): Authentication context for the operation (user,...). |
seek_descriptor | (optional input): Specifies the position where data is to be written. If not specified, data will be written at the current position. |
buffer_size | (input): Amount (in bytes) of data to be written. |
buffer | (input): Address in memory of the data to write to file. |
write_amount | (output): Pointer to the amount of data (in bytes) that have been written during this call. |
Definition at line 245 of file FSAL_TEMPLATE/fsal_fileop.c.
unsigned int XFSFSAL_GetFileno | ( | fsal_file_t * | pfile | ) |
Definition at line 325 of file FSAL_TEMPLATE/fsal_fileop.c.