nfs-ganesha 1.4
Functions | Variables

mfsl_async_setattr.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_setattr_async_op (mfsl_async_op_desc_t *popasyncdesc)
fsal_status_t MFSL_setattrs_check_perms (mfsl_object_t *filehandle, mfsl_object_specific_data_t *pspecdata, fsal_op_context_t *p_context, mfsl_context_t *p_mfsl_context, fsal_attrib_list_t *attrib_set)
fsal_status_t MFSL_setattrs (mfsl_object_t *filehandle, fsal_op_context_t *p_context, mfsl_context_t *p_mfsl_context, fsal_attrib_list_t *attrib_set, fsal_attrib_list_t *object_attributes)

Variables

mfsl_parameter_t mfsl_param

Function Documentation

fsal_status_t MFSL_setattr_async_op ( mfsl_async_op_desc_t popasyncdesc)

MFSL_setattr_async_op: Callback for asynchronous setattr.

Callback for asynchronous setattr.

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

Definition at line 59 of file mfsl_async_setattr.c.

fsal_status_t MFSL_setattrs ( mfsl_object_t filehandle,
fsal_op_context_t p_context,
mfsl_context_t p_mfsl_context,
fsal_attrib_list_t attrib_set,
fsal_attrib_list_t object_attributes 
)

MFSL_setattrs : posts an asynchronous setattr and sets the cached attributes in return.

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

Parameters:
filehandle[IN] mfsl object to be operated on.
p_context[IN] associated fsal context
p_mfsl_context[INOUT] associated mfsl context
attrib_set[IN] attributes to be set
object_attributes[INOUT] resulting attributes
Returns:
the same as FSAL_setattrs

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

Definition at line 128 of file mfsl_async_setattr.c.

fsal_status_t MFSL_setattrs_check_perms ( mfsl_object_t filehandle,
mfsl_object_specific_data_t pspecdata,
fsal_op_context_t p_context,
mfsl_context_t p_mfsl_context,
fsal_attrib_list_t attrib_set 
)

MFSL_setattrs_check_perms : Checks authorization to perform an asynchronous setattr.

Checks authorization to perform an asynchronous setattr.

Parameters:
filehandle[IN] mfsl object to be operated on.
pspecdata[INOUT] mfsl object associated specific data
p_context[IN] associated fsal context
p_mfsl_context[INOUT] associated mfsl context
attrib_set[IN] attributes to be set
Returns:
always FSAL_NO_ERROR (not yet implemented

Definition at line 90 of file mfsl_async_setattr.c.


Variable Documentation

Definition at line 58 of file mfsl_async_init.c.