nfs-ganesha 1.4
Functions | Variables

mfsl_async_rename.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_rename_async_op (mfsl_async_op_desc_t *popasyncdesc)
fsal_status_t MFSAL_rename_check_perms (mfsl_object_t *old_parentdir_handle, fsal_name_t *p_old_name, fsal_attrib_list_t *src_dir_attributes, mfsl_object_t *new_parentdir_handle, fsal_name_t *p_new_name, fsal_attrib_list_t *tgt_dir_attributes, fsal_op_context_t *p_context, mfsl_context_t *p_mfsl_context)
fsal_status_t MFSL_rename (mfsl_object_t *old_parentdir_handle, fsal_name_t *p_old_name, mfsl_object_t *new_parentdir_handle, fsal_name_t *p_new_name, fsal_op_context_t *p_context, mfsl_context_t *p_mfsl_context, fsal_attrib_list_t *src_dir_attributes, fsal_attrib_list_t *tgt_dir_attributes)

Variables

mfsl_parameter_t mfsl_param
fsal_handle_t dir_handle_precreate

Function Documentation

fsal_status_t MFSAL_rename_check_perms ( mfsl_object_t old_parentdir_handle,
fsal_name_t p_old_name,
fsal_attrib_list_t src_dir_attributes,
mfsl_object_t new_parentdir_handle,
fsal_name_t p_new_name,
fsal_attrib_list_t tgt_dir_attributes,
fsal_op_context_t p_context,
mfsl_context_t p_mfsl_context 
)

MFSAL_rename_check_perms : Checks authorization to perform an asynchronous rename.

Checks authorization to perform an asynchronous rename.

Parameters:
old_parentdir_handle[IN] mfsl object to be operated on (source directory for the rename)
p_old_name[IN] name of the object to be renamed
new_parentdir_handle[IN] mfsl object to be operated on (destination directory for the rename)
p_new_name[IN] new name of the object
p_context[IN] associated fsal context
p_mfsl_context[INOUT] associated mfsl context
src_dir_attributes[INOUT] resulting attributes for directory
tgt_dir_attributes[INOUT] resulting attributes for directory
Returns:
always FSAL_NO_ERROR (not yet implemented

Todo:
: put some stuff in this function

Definition at line 113 of file mfsl_async_rename.c.

fsal_status_t MFSL_rename ( mfsl_object_t old_parentdir_handle,
fsal_name_t p_old_name,
mfsl_object_t new_parentdir_handle,
fsal_name_t p_new_name,
fsal_op_context_t p_context,
mfsl_context_t p_mfsl_context,
fsal_attrib_list_t src_dir_attributes,
fsal_attrib_list_t tgt_dir_attributes 
)

MFSL_rename : posts an asynchronous rename and sets the cached attributes in return.

Posts an asynchronous rename 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:
old_parentdir_handle[IN] mfsl object to be operated on (source directory for the rename)
p_old_name[IN] name of the object to be renamed ee
new_parentdir_handle[IN] mfsl object to be operated on (destination directory for the rename)
p_new_name[IN] new name of the object
p_context[IN] associated fsal context
p_mfsl_context[INOUT] associated mfsl context
src_dir_attributes[INOUT] resulting attributes for directory
tgt_dir_attributes[INOUT] resulting attributes for directory
Returns:
the same as FSAL_rename

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

Definition at line 152 of file mfsl_async_rename.c.

fsal_status_t MFSL_rename_async_op ( mfsl_async_op_desc_t popasyncdesc)

MFSL_rename_async_op: Callback for asynchronous rename.

Callback for asynchronous rename.

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

Definition at line 60 of file mfsl_async_rename.c.


Variable Documentation

Definition at line 55 of file mfsl_async.c.

Definition at line 58 of file mfsl_async_init.c.