nfs-ganesha 1.4
Functions | Variables

mfsl_async_mkdir.c File Reference

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

Go to the source code of this file.

Functions

fsal_status_t MFSL_mkdir_async_op (mfsl_async_op_desc_t *popasyncdesc)
fsal_status_t MFSAL_mkdir_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_mkdir (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_mkdir_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_mkdir_check_perms : Checks authorization to perform an asynchronous mkdir.

Checks authorization to perform an asynchronous mkdir.

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[IN] object-attributes
Returns:
always FSAL_NO_ERROR (not yet implemented

Todo:
: put some stuff in this function

Definition at line 127 of file mfsl_async_mkdir.c.

fsal_status_t MFSL_mkdir ( 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_mkdir : posts an asynchronous mkdir and sets the cached attributes in return.

Posts an asynchronous setattr 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:
target_handle[IN] mfsl object to be operated on (object to be hard linked).
dir_handle[IN] mfsl object to be operated on (destination directory for the link).
p_context[IN] associated fsal context
p_mfsl_context[INOUT] associated mfsl context
attrib_set[IN] attributes to be set
tgt_attributes[INOUT] resulting attributes for target
dir_attributes[INOUT] resulting attributes for directory
Returns:
the same as FSAL_link

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

Definition at line 161 of file mfsl_async_mkdir.c.

fsal_status_t MFSL_mkdir_async_op ( mfsl_async_op_desc_t popasyncdesc)

MFSL_mkdir_async_op: Callback for asynchronous link.

Callback for asynchronous link.

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

Definition at line 61 of file mfsl_async_mkdir.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.