nfs-ganesha 1.4
Defines | Functions

fsal_fsinfo.c File Reference

#include <string.h>
#include <rpc/rpc.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_FSINFO_NB_OP_ALLOC   2
#define FSAL_FSINFO_IDX_OP_PUTFH   0
#define FSAL_FSINFO_IDX_OP_GETATTR   1

Functions

fsal_status_t PROXYFSAL_dynamic_fsinfo (fsal_handle_t *filehandle, fsal_op_context_t *context, fsal_dynamicfsinfo_t *dynamicinfo)

Define Documentation

#define FSAL_FSINFO_IDX_OP_GETATTR   1
#define FSAL_FSINFO_IDX_OP_PUTFH   0
#define FSAL_FSINFO_NB_OP_ALLOC   2

Function Documentation

fsal_status_t PROXYFSAL_dynamic_fsinfo ( fsal_handle_t filehandle,
fsal_op_context_t context,
fsal_dynamicfsinfo_t dynamicinfo 
)

FSAL_dynamic_fsinfo: Return dynamic filesystem info such as used size, free size, number of objects...

Parameters:
filehandle(input): Handle of an object in the filesystem whom info is to be retrieved.
p_context(input): Authentication context for the operation (user,...).
dynamicinfo(output): Pointer to the static info of the filesystem.
Returns:
Major error codes:
  • ERR_FSAL_NO_ERROR (no error)
  • ERR_FSAL_FAULT (a NULL pointer was passed as mandatory argument)
  • Other error codes can be returned : ERR_FSAL_IO, ...

Definition at line 58 of file FSAL_PROXY/fsal_fsinfo.c.