nfs-ganesha 1.4
Functions

posixdb_delete.c File Reference

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

Go to the source code of this file.

Functions

fsal_posixdb_status_t fsal_posixdb_delete (fsal_posixdb_conn *p_conn, posixfsal_handle_t *p_parent_directory_handle, fsal_name_t *p_filename, fsal_posixdb_fileinfo_t *p_object_info)
fsal_posixdb_status_t fsal_posixdb_deleteHandle (fsal_posixdb_conn *p_conn, posixfsal_handle_t *p_parent_directory_handle)

Function Documentation

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

fsal_posixdb_delete: Delete a path entry for an object. If the file has only one path (hardlink = 1), its handle is deleted too.

Parameters:
p_conn(input) Database connection
p_parent_directory_handle(input): Handle of the directory where the object is.
p_filename(input): The name of the object to delete.
p_object_info(input): POSIX information of the object (device ID, inode, ...)
Returns:
- FSAL_POSIXDB_NOERR, if no error.
  • FSAL_POSIXDB_NOENT, if parent_directory_handle does not exist.

Definition at line 8 of file PGSQL/posixdb_delete.c.

fsal_posixdb_status_t fsal_posixdb_deleteHandle ( fsal_posixdb_conn *  p_conn,
posixfsal_handle_t p_handle 
)

fsal_posixdb_deleteHandle: Delete a Handle and all paths related to him.

Parameters:
p_conn(input) Database connection
p_handle(input): Handle of the directory where the object is.
Returns:
- FSAL_POSIXDB_NOERR, if no error.
  • FSAL_POSIXDB_NOENT, if p_handle does not exist.

Definition at line 69 of file PGSQL/posixdb_delete.c.