nfs-ganesha 1.4
Functions | Variables

mfsl_async_unlink.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_unlink_async_op (mfsl_async_op_desc_t *popasyncdesc)
fsal_status_t MFSAL_unlink_check_perms (mfsl_object_t *dir_handle, mfsl_object_specific_data_t *dir_pspecdata, fsal_name_t *p_object_name, fsal_attrib_list_t *dir_attributes, fsal_op_context_t *p_context, mfsl_context_t *p_mfsl_context)
fsal_status_t MFSL_unlink (mfsl_object_t *dir_handle, fsal_name_t *p_object_name, mfsl_object_t *object_handle, fsal_op_context_t *p_context, mfsl_context_t *p_mfsl_context, fsal_attrib_list_t *dir_attributes)

Variables

mfsl_parameter_t mfsl_param

Function Documentation

fsal_status_t MFSAL_unlink_check_perms ( mfsl_object_t dir_handle,
mfsl_object_specific_data_t dir_pspecdata,
fsal_name_t p_object_name,
fsal_attrib_list_t dir_attributes,
fsal_op_context_t p_context,
mfsl_context_t p_mfsl_context 
)

MFSAL_link_check_perms : Checks authorization to perform an asynchronous setattr.

Checks authorization to perform an asynchronous link.

Parameters:
target_handle[IN] mfsl object to be operated on.
dir_handle[IN] mfsl object to be operated on.
tgt_pspecdata[INOUT] mfsl object associated specific data
dir_pspecdata[INOUT] mfsl object associated specific data
p_context[IN] associated fsal context
p_mfsl_context[INOUT] associated mfsl context
Returns:
always FSAL_NO_ERROR (not yet implemented

Todo:
: put some stuff in this function

Definition at line 91 of file mfsl_async_unlink.c.

fsal_status_t MFSL_unlink ( mfsl_object_t dir_handle,
fsal_name_t p_object_name,
mfsl_object_t object_handle,
fsal_op_context_t p_context,
mfsl_context_t p_mfsl_context,
fsal_attrib_list_t dir_attributes 
)

MFSL_unlink : posts an asynchronous unlink and sets the cached attributes in return.

Posts an asynchronous unlink 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:
parentdir_handle[IN] mfsl object to be operated on (source directory for the unlink)
p_object_name[IN] name of the object to be destroyed
p_context[IN] associated fsal context
p_mfsl_context[INOUT] associated mfsl context
parentdir_attributes[INOUT] resulting attributes for directory
Returns:
the same as FSAL_unlink

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

Definition at line 124 of file mfsl_async_unlink.c.

fsal_status_t MFSL_unlink_async_op ( mfsl_async_op_desc_t popasyncdesc)

MFSL_link_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 59 of file mfsl_async_unlink.c.


Variable Documentation

Definition at line 58 of file mfsl_async_init.c.