nfs-ganesha 1.4
Functions

posixdb_replace.c File Reference

#include "posixdb_internal.h"
#include "posixdb_consistency.h"
#include <string.h>

Go to the source code of this file.

Functions

fsal_posixdb_status_t fsal_posixdb_replace (fsal_posixdb_conn *p_conn, fsal_posixdb_fileinfo_t *p_object_info, posixfsal_handle_t *p_parent_directory_handle_old, fsal_name_t *p_filename_old, posixfsal_handle_t *p_parent_directory_handle_new, fsal_name_t *p_filename_new)

Function Documentation

fsal_posixdb_status_t fsal_posixdb_replace ( fsal_posixdb_conn *  p_conn,
fsal_posixdb_fileinfo_t p_object_info,
posixfsal_handle_t p_parent_directory_handle_old,
fsal_name_t p_filename_old,
posixfsal_handle_t p_parent_directory_handle_new,
fsal_name_t p_filename_new 
)

fsal_posixdb_replace: Move an object in the Path table (identified by its name and its parent directory). Create an entry in the Handle table if needed, and update (or create) an entry in the Path table.

Parameters:
conn(input) Database connection
p_object_info(input): POSIX information of the object to add (device ID, inode, ...)
p_parent_directory_handle_old(input): Handle of the source directory of the object.
p_filename_old(input): The old name of the object.
p_parent_directory_handle_new(input): Handle of the new directory of the object.
p_filename_new(input): The new name of the object.
Returns:
- FSAL_POSIXDB_NOERR, if no error.
  • Another error code else.

Definition at line 11 of file MYSQL/posixdb_replace.c.