nfs-ganesha 1.4
Functions

posixdb_add.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_add (fsal_posixdb_conn *p_conn, fsal_posixdb_fileinfo_t *p_object_info, posixfsal_handle_t *p_parent_directory_handle, fsal_name_t *p_filename, posixfsal_handle_t *p_object_handle)

Function Documentation

fsal_posixdb_status_t fsal_posixdb_add ( fsal_posixdb_conn *  p_conn,
fsal_posixdb_fileinfo_t *  p_object_info,
posixfsal_handle_t *  p_parent_directory_handle,
fsal_name_t *  p_filename,
posixfsal_handle_t *  p_object_handle 
)

fsal_posixdb_add: Add an object in the database (identified by its name and its parent directory). Create an entry in the Handle table if needed, and add (or replace existing) 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(input): Handle of the parent directory of the object to add.
p_filename(input): The name of the object to add.
p_object_handle(output): FSAL handle of the added entry.
Returns:
- FSAL_POSIXDB_NOERR, if no error.
  • Another error code else.

Definition at line 16 of file MYSQL/posixdb_add.c.