nfs-ganesha 1.4
Functions | Variables

mfsl_async_create.c File Reference

#include "fsal_types.h"
#include "fsal.h"
#include "mfsl_types.h"
#include "mfsl.h"
#include "common_utils.h"
#include "RW_Lock.h"

Go to the source code of this file.

Functions

fsal_status_t MFSL_create_async_op (mfsl_async_op_desc_t *popasyncdesc)
fsal_status_t MFSAL_create_check_perms (mfsl_object_t *target_handle, fsal_name_t *p_dirname, fsal_op_context_t *p_context, mfsl_context_t *p_mfsl_context, fsal_attrib_list_t *object_attributes)
fsal_status_t MFSL_create (mfsl_object_t *parent_directory_handle, fsal_name_t *p_dirname, fsal_op_context_t *p_context, mfsl_context_t *p_mfsl_context, fsal_accessmode_t accessmode, mfsl_object_t *object_handle, fsal_attrib_list_t *object_attributes, fsal_attrib_list_t *parent_attributes)

Variables

mfsl_parameter_t mfsl_param
fsal_handle_t dir_handle_precreate
mfsl_synclet_data_tsynclet_data

Function Documentation

fsal_status_t MFSAL_create_check_perms ( mfsl_object_t target_handle,
fsal_name_t p_dirname,
fsal_op_context_t p_context,
mfsl_context_t p_mfsl_context,
fsal_attrib_list_t object_attributes 
)

MFSAL_create_check_perms : Checks authorization to perform an asynchronous setattr.

Checks authorization to perform an asynchronous setattr.

Parameters:
target_handle[IN] mfsl object to be operated on.
p_dirname[IN] name of the object to be created
p_context[IN] associated fsal context
p_mfsl_context[INOUT] associated mfsl context
object_attributes[INOUT] parent's attributes

Todo:
: put some stuff in this function

Definition at line 131 of file mfsl_async_create.c.

fsal_status_t MFSL_create ( mfsl_object_t parent_directory_handle,
fsal_name_t p_dirname,
fsal_op_context_t p_context,
mfsl_context_t p_mfsl_context,
fsal_accessmode_t  accessmode,
mfsl_object_t object_handle,
fsal_attrib_list_t object_attributes,
fsal_attrib_list_t parent_attributes 
)

MFSL_create : posts an asynchronous create and sets the cached attributes in return.

Posts an asynchronous create and sets the cached attributes in return. If an object is not asynchronous, then the content of object attributes structure for result will be used to populate it.

Parameters:
parent_directory_handle[IN] mfsl object to be operated on (parent dir for the new file).
p_dirname[IN] new file's name
p_context[IN] associated fsal context
p_mfsl_context[INOUT] associated mfsl context
accessmode[IN] access mode for file create
object_handle[INOUT] new mfsl object
object_attributes[INOUT] resulting attributes for new object
parent_attributes[IN] attributes of the parent entry
Returns:
the same as FSAL_link

Todo:
: there may be a coefficient to be applied here

Definition at line 166 of file mfsl_async_create.c.

fsal_status_t MFSL_create_async_op ( mfsl_async_op_desc_t popasyncdesc)

MFSL_create_async_op: Callback for asynchronous link.

Callback for asynchronous create.

Parameters:
popasyncdes[INOUT] asynchronous operation descriptor
Returns:
the status of the performed FSAL_create.

Definition at line 62 of file mfsl_async_create.c.


Variable Documentation

Definition at line 55 of file mfsl_async.c.

Definition at line 58 of file mfsl_async_init.c.

Definition at line 56 of file mfsl_async_init.c.