nfs-ganesha 1.4
Defines | Functions

fsal_rcp.c File Reference

#include "fsal.h"
#include "fsal_internal.h"
#include "fsal_convert.h"
#include "abstract_mem.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <fcntl.h>

Go to the source code of this file.

Defines

#define RCP_BUFFER_SIZE   16384

Functions

fsal_status_t PROXYFSAL_rcp (fsal_handle_t *filehandle, fsal_op_context_t *p_context, fsal_path_t *p_local_path, fsal_rcpflag_t transfer_opt)

Define Documentation

#define RCP_BUFFER_SIZE   16384

Definition at line 34 of file FSAL_PROXY/fsal_rcp.c.


Function Documentation

fsal_status_t PROXYFSAL_rcp ( fsal_handle_t filehandle,
fsal_op_context_t p_context,
fsal_path_t p_local_path,
fsal_rcpflag_t  transfer_opt 
)

FSAL_rcp Copy a file to/from a local filesystem.

Parameters:
filehandle(input): Handle of the file to be copied.
p_context(input): Authentication context for the operation (user,...).
p_local_path(input): Path of the file in the local filesystem.
transfer_opt(input)
Returns:
always ERR_FSAL_NOTSUPP for FSAL_PROXY

Todo:
: put a function in fsal_convert.c that convert your local filesystem errors to an FSAL error code. So you will have a call like : Return( unix2fsal_error(errno) , errno , INDEX_FSAL_rcp );

Definition at line 50 of file FSAL_PROXY/fsal_rcp.c.