nfs-ganesha 1.4
Functions

fsal_rename.c File Reference

#include "fsal.h"
#include "fsal_internal.h"
#include "fsal_convert.h"

Go to the source code of this file.

Functions

fsal_status_t POSIXFSAL_rename (fsal_handle_t *old_parentdir_handle, fsal_name_t *p_old_name, fsal_handle_t *new_parentdir_handle, fsal_name_t *p_new_name, fsal_op_context_t *context, fsal_attrib_list_t *p_src_dir_attributes, fsal_attrib_list_t *p_tgt_dir_attributes)

Function Documentation

fsal_status_t POSIXFSAL_rename ( fsal_handle_t old_parentdir_handle,
fsal_name_t p_old_name,
fsal_handle_t new_parentdir_handle,
fsal_name_t p_new_name,
fsal_op_context_t context,
fsal_attrib_list_t p_src_dir_attributes,
fsal_attrib_list_t p_tgt_dir_attributes 
)

FSAL_rename: Change name and/or parent dir of a filesystem object.

Parameters:
old_parentdir_handle(input): Source parent directory of the object is to be moved/renamed.
p_old_name(input): Pointer to the current name of the object to be moved/renamed.
new_parentdir_handle(input): Target parent directory for the object.
p_new_name(input): Pointer to the new name for the object.
cred(input): Authentication context for the operation (user,...).
src_dir_attributes(optionnal input/output): Post operation attributes for the source directory. As input, it defines the attributes that the caller wants to retrieve (by positioning flags into this structure) and the output is built considering this input (it fills the structure according to the flags it contains). May be NULL.
tgt_dir_attributes(optionnal input/output): Post operation attributes for the target directory. As input, it defines the attributes that the caller wants to retrieve (by positioning flags into this structure) and the output is built considering this input (it fills the structure according to the flags it contains). May be NULL.
Returns:
Major error codes :
  • ERR_FSAL_NO_ERROR (no error)
  • Another error code if an error occured.

Definition at line 56 of file FSAL_POSIX/fsal_rename.c.