nfs-ganesha 1.4
Defines | Functions

fsal_unlink.c File Reference

#include <string.h>
#include <rpc/rpc.h>
#include <rpc/clnt.h>
#include <rpc/xdr.h>
#include "nfs4.h"
#include "fsal_internal.h"
#include "fsal_convert.h"
#include "fsal_common.h"
#include "nfs_proto_functions.h"
#include "fsal_nfsv4_macros.h"

Go to the source code of this file.

Defines

#define FSAL_UNLINK_NB_OP_ALLOC   3
#define FSAL_UNLINK_IDX_OP_PUTFH   0
#define FSAL_UNLINK_IDX_OP_REMOVE   1
#define FSAL_UNLINK_IDX_OP_GETATTR   2

Functions

fsal_status_t PROXYFSAL_unlink (fsal_handle_t *parentdir_handle, fsal_name_t *p_object_name, fsal_op_context_t *context, fsal_attrib_list_t *parentdir_attributes)

Define Documentation

#define FSAL_UNLINK_IDX_OP_GETATTR   2
#define FSAL_UNLINK_IDX_OP_PUTFH   0
#define FSAL_UNLINK_IDX_OP_REMOVE   1
#define FSAL_UNLINK_NB_OP_ALLOC   3

Function Documentation

fsal_status_t PROXYFSAL_unlink ( fsal_handle_t parentdir_handle,
fsal_name_t p_object_name,
fsal_op_context_t context,
fsal_attrib_list_t parentdir_attributes 
)

FSAL_unlink: Remove a filesystem object .

Parameters:
parentdir_handle(input): Handle of the parent directory of the object to be deleted.
p_object_name(input): Name of the object to be removed.
p_context(input): Authentication context for the operation (user,...).
parentdir_attributes(optionnal input/output): Post operation attributes of the parent 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)
  • ERR_FSAL_STALE (parentdir_handle does not address an existing object)
  • ERR_FSAL_NOTDIR (parentdir_handle does not address a directory)
  • ERR_FSAL_NOENT (the object designated by p_object_name does not exist)
  • ERR_FSAL_NOTEMPTY (tried to remove a non empty directory)
  • ERR_FSAL_FAULT (a NULL pointer was passed as mandatory argument)
  • Other error codes can be returned : ERR_FSAL_ACCESS, ERR_FSAL_IO, ...

Definition at line 70 of file FSAL_PROXY/fsal_unlink.c.