nfs-ganesha 1.4
Defines | Functions

fsal_rcp.c File Reference

#include "fsal.h"
#include "fsal_internal.h"
#include "fsal_convert.h"
#include <string.h>
#include "abstract_mem.h"

Go to the source code of this file.

Defines

#define RCP_BUFFER_SIZE   10485760

Functions

fsal_status_t POSIXFSAL_rcp (fsal_handle_t *filehdl, fsal_op_context_t *context, fsal_path_t *p_local_path, fsal_rcpflag_t transfer_opt)

Define Documentation

#define RCP_BUFFER_SIZE   10485760

Function Documentation

fsal_status_t POSIXFSAL_rcp ( fsal_handle_t filehdl,
fsal_op_context_t context,
fsal_path_t p_local_path,
fsal_rcpflag_t  transfer_opt 
)

FSAL_rcp: Copy an HPSS file to/from a local filesystem.

Parameters:
filehandle(input): Handle of the HPSS file to be copied.
cred(input): Authentication context for the operation (user,...).
p_local_path(input): Path of the file in the local filesystem.
transfer_opt(input): Flags that indicate transfer direction and options. This consists of an inclusive OR between the following values :

  • FSAL_RCP_FS_TO_LOCAL: Copy the file from the filesystem to a local path.
  • FSAL_RCP_LOCAL_TO_FS: Copy the file from local path to the filesystem.
  • FSAL_RCP_LOCAL_CREAT: Create the target local file if it doesn't exist.
  • FSAL_RCP_LOCAL_EXCL: Produce an error if the target local file already exists.
Returns:
Major error codes :
  • ERR_FSAL_NO_ERROR (no error)
  • Another error code if an error occured.

Definition at line 51 of file FSAL_POSIX/fsal_rcp.c.