nfs-ganesha 1.4
Classes | Defines | Typedefs | Functions

nfs_proto_functions.h File Reference

Prototypes for NFS protocol functions. More...

#include "nfs23.h"
#include "mount.h"
#include "nfs4.h"
#include "nlm4.h"
#include "rquota.h"
#include <pthread.h>
#include <sys/types.h>
#include <sys/param.h>
#include "LRU_List.h"
#include "fsal.h"
#include "cache_inode.h"
#include "nfs_exports.h"
#include "nfs_creds.h"
#include "nfs_file_handle.h"
#include "err_LRU_List.h"
#include "err_HashTable.h"

Go to the source code of this file.

Classes

union  nfs_arg__
struct  COMPOUND4res_extended
union  nfs_res__
struct  nfs_function_desc__
struct  fattr4_dent

Defines

#define NFS4_ATTRVALS_BUFFLEN   1024
#define NOTHING_SPECIAL   0x0000
#define MAKES_WRITE   0x0001
#define NEEDS_CRED   0x0002
#define CAN_BE_DUP   0x0004
#define SUPPORTS_GSS   0x0008
#define FATTR4_ATTR_READ   0x00001
#define FATTR4_ATTR_WRITE   0x00010
#define FATTR4_ATTR_READ_WRITE   0x00011
#define NFS4_LEASE_LIFETIME   120
#define FSINFO_MAX_FILESIZE   0xFFFFFFFFFFFFFFFFll
#define MAX_HARD_LINK_VALUE   (0xffff)
#define NFS4_PSEUDOFS_MAX_READ_SIZE   1048576
#define NFS4_PSEUDOFS_MAX_WRITE_SIZE   1048576
#define NFS4_ROOT_UID   0
#define NFS_MAXPATHLEN   MAXPATHLEN
#define DEFAULT_DOMAIN   "localdomain"
#define DEFAULT_IDMAPCONF   "/etc/idmapd.conf"
#define NFS_REQ_OK   0
#define NFS_REQ_DROP   1

Typedefs

typedef union nfs_arg__ nfs_arg_t
typedef union nfs_res__ nfs_res_t
typedef int(* nfs_protocol_function_t )(nfs_arg_t *, exportlist_t *, fsal_op_context_t *, nfs_worker_data_t *, struct svc_req *, nfs_res_t *)
typedef int(* nfsremote_protocol_function_t )(CLIENT *, nfs_arg_t *, nfs_res_t *)
typedef void(* nfs_protocol_free_t )(nfs_res_t *)
typedef struct nfs_function_desc__ nfs_function_desc_t
typedef int(* nfs4_op_function_t )(struct nfs_argop4 *, compound_data_t *, struct nfs_resop4 *)
typedef struct fattr4_dent fattr4_dent_t

Functions

int mnt_Null (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The Mount proc null function, for all versions.
int mnt_Mnt (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The Mount proc mount function, for all versions.
int mnt_Dump (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The Mount proc Dump function, for all versions.
int mnt_Umnt (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The Mount proc umount function, for all versions.
int mnt_UmntAll (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The Mount proc umount_all function, for all versions.
int mnt_Export (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The Mount proc export function, for all versions.
int nlm_Null (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NLM proc null function, for all versions.
int nlm4_Test (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
int nlm4_Lock (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Set a range lock.
int nlm4_Cancel (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Cancel a blocked range lock.
int nlm4_Unlock (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Free a range lock.
int nlm4_Sm_Notify (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 NSM notification.
int nlm4_Test_Message (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Test lock Message.
int nlm4_Cancel_Message (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
int nlm4_Lock_Message (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
int nlm4_Unlock_Message (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Unlock Message.
int nlm4_Granted_Res (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
int nlm4_Share (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
int nlm4_Unshare (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
int nlm4_Free_All (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
int rquota_Null (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The RQUOTA proc null function, for all versions.
int rquota_getquota (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The Rquota getquota function, for all versions.
int rquota_getactivequota (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The Rquota getactivequota function, for all versions.
int rquota_setquota (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The Rquota setquota function, for all versions.
int rquota_setactivequota (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The Rquota setactivequota function, for all versions.
int nfs_Null (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
int nfs_Getattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Get attributes for a file.
int nfs_Setattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 SETATTR.
int nfs2_Root (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Implements NFSPROC2_ROOT.
int nfs_Lookup (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 LOOKUP.
int nfs_Readlink (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 READLINK.
int nfs_Read (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 READ.
int nfs2_Writecache (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Implements NFSPROC2_WRITECACHE.
int nfs_Write (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 WRITE.
int nfs_Create (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 CREATE.
int nfs_Remove (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 REMOVE.
int nfs_Rename (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 RENAME.
int nfs_Link (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 LINK.
int nfs_Symlink (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 SYMLINK.
int nfs_Mkdir (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 MKDIR.
int nfs_Rmdir (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 RMDIR.
int nfs_Readdir (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 READDIR.
int nfs_Fsstat (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC2 and PROC3 FSSTAT.
int nfs3_Access (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
int nfs3_Readdirplus (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 The NFS PROC3 READDIRPLUS.
int nfs3_Fsinfo (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Implements NFSPROC3_FSINFO.
int nfs3_Pathconf (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Implements NFSPROC3_PATHCONF.
int nfs3_Commit (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Implements NFSPROC3_COMMIT.
int nfs3_Mknod (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
 Implements NFSPROC3_MKNOD.
int nfs4_Compound (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, nfs_worker_data_t *pworker, struct svc_req *preq, nfs_res_t *pres)
int nfs4_op_access (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_close (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_commit (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_create (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_delegpurge (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_delegreturn (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_getattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_getfh (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_link (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_lock (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_lockt (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_locku (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_lookup (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_lookupp (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_nverify (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_open (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_open_confirm (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_open_downgrade (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_openattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_putfh (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_putpubfh (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_putrootfh (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_read (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_readdir (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
 NFS4_OP_READDIR.
int nfs4_op_remove (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_renew (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_rename (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_restorefh (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_readlink (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_savefh (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_secinfo (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_setattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_setclientid (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
 The NFS4_OP_SETCLIENTID operation.
int nfs4_op_setclientid_confirm (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
 The NFS4_OP_SETCLIENTID_CONFIRM operation.
int nfs4_op_verify (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_write (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_release_lockowner (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_illegal (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_getattr_pseudo (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_access_pseudo (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_lookup_pseudo (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_lookupp_pseudo (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_readdir_pseudo (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_getattr_xattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_access_xattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_lookup_xattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_lookupp_xattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_readdir_xattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
nfsstat4 nfs4_fh_to_xattrfh (nfs_fh4 *pfhin, nfs_fh4 *pfhout)
nfsstat4 nfs4_xattrfh_to_fh (nfs_fh4 *pfhin, nfs_fh4 *pfhout)
int nfs4_op_open_xattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_read_xattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_write_xattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs4_op_remove_xattr (struct nfs_argop4 *op, compound_data_t *data, struct nfs_resop4 *resp)
int nfs_XattrD_Name (char *strname, char *objectname)
int nfs4_XattrToFattr (fattr4 *Fattr, compound_data_t *data, nfs_fh4 *objFH, bitmap4 *Bitmap)
int nfs4_cb_getattr (struct nfs_cb_argop4 *op, compound_data_t *data, struct nfs_cb_resop4 *resp)
int nfs4_cb_recall (struct nfs_cb_argop4 *op, compound_data_t *data, struct nfs_cb_resop4 *resp)
int nfs4_cb_illegal (struct nfs_cb_argop4 *op, compound_data_t *data, struct nfs_cb_resop4 *resp)
int nfs4_op_stat_update (nfs_arg_t *parg, nfs_res_t *pres, nfs_request_stat_t *pstat_req)
void mnt1_Mnt_Free (nfs_res_t *pres)
void mnt3_Mnt_Free (nfs_res_t *pres)
void mnt_Dump_Free (nfs_res_t *pres)
void mnt_Export_Free (nfs_res_t *pres)
void mnt_Null_Free (nfs_res_t *pres)
void mnt_Umnt_Free (nfs_res_t *pres)
void mnt_UmntAll_Free (nfs_res_t *pres)
void nlm_Null_Free (nfs_res_t *pres)
void nlm4_Test_Free (nfs_res_t *pres)
void nlm4_Lock_Free (nfs_res_t *pres)
void nlm4_NM_Lock_Free (nfs_res_t *pres)
void nlm4_Share_Free (nfs_res_t *pres)
void nlm4_Unshare_Free (nfs_res_t *pres)
void nlm4_Cancel_Free (nfs_res_t *pres)
void nlm4_Unlock_Free (nfs_res_t *pres)
void nlm4_Sm_Notify_Free (nfs_res_t *pres)
void nlm4_Granted_Res_Free (nfs_res_t *pres)
void nlm4_Free_All_Free (nfs_res_t *pres)
void rquota_Null_Free (nfs_res_t *pres)
void rquota_getquota_Free (nfs_res_t *pres)
void rquota_getactivequota_Free (nfs_res_t *pres)
void rquota_setquota_Free (nfs_res_t *pres)
void rquota_setactivequota_Free (nfs_res_t *pres)
void nfs_Null_Free (nfs_res_t *resp)
void nfs_Getattr_Free (nfs_res_t *resp)
void nfs_Setattr_Free (nfs_res_t *resp)
void nfs2_Lookup_Free (nfs_res_t *resp)
void nfs3_Lookup_Free (nfs_res_t *resp)
void nfs3_Access_Free (nfs_res_t *pres)
void nfs3_Readlink_Free (nfs_res_t *resp)
void nfs2_Read_Free (nfs_res_t *resp)
void nfs_Write_Free (nfs_res_t *resp)
void nfs_Create_Free (nfs_res_t *resp)
void nfs_Mkdir_Free (nfs_res_t *resp)
void nfs_Symlink_Free (nfs_res_t *resp)
void nfs3_Mknod_Free (nfs_res_t *pres)
void nfs_Remove_Free (nfs_res_t *resp)
void nfs_Rmdir_Free (nfs_res_t *resp)
void nfs_Rename_Free (nfs_res_t *resp)
void nfs_Link_Free (nfs_res_t *resp)
void nfs3_Readdir_Free (nfs_res_t *resp)
void nfs3_Readdirplus_Free (nfs_res_t *resp)
 Frees the result structure allocated for nfs3_Readdirplus.
void nfs_Fsstat_Free (nfs_res_t *resp)
void nfs3_Fsinfo_Free (nfs_res_t *pres)
void nfs3_Pathconf_Free (nfs_res_t *pres)
void nfs3_Commit_Free (nfs_res_t *pres)
void nfs2_Root_Free (nfs_res_t *pres)
void nfs2_Writecache_Free (nfs_res_t *pres)
void nfs2_Readdir_Free (nfs_res_t *resp)
void nfs3_Read_Free (nfs_res_t *resp)
void nfs2_Readlink_Free (nfs_res_t *resp)
void nfs4_Compound_FreeOne (nfs_resop4 *pres)
 Free the result for one NFS4_OP.
void nfs4_Compound_Free (nfs_res_t *pres)
void nfs4_Compound_CopyResOne (nfs_resop4 *pres_dst, nfs_resop4 *pres_src)
void nfs4_Compound_CopyRes (nfs_res_t *pres_dst, nfs_res_t *pres_src)
void nfs4_op_access_Free (ACCESS4res *resp)
void nfs4_op_close_Free (CLOSE4res *resp)
void nfs4_op_commit_Free (COMMIT4res *resp)
void nfs4_op_create_Free (CREATE4res *resp)
void nfs4_op_delegreturn_Free (DELEGRETURN4res *resp)
void nfs4_op_delegpurge_Free (DELEGPURGE4res *resp)
void nfs4_op_getattr_Free (GETATTR4res *resp)
void nfs4_op_getfh_Free (GETFH4res *resp)
void nfs4_op_illegal_Free (ILLEGAL4res *resp)
void nfs4_op_link_Free (LINK4res *resp)
void nfs4_op_lock_Free (LOCK4res *resp)
void nfs4_op_lockt_Free (LOCKT4res *resp)
void nfs4_op_locku_Free (LOCKU4res *resp)
void nfs4_op_lookup_Free (LOOKUP4res *resp)
void nfs4_op_lookupp_Free (LOOKUPP4res *resp)
void nfs4_op_nverify_Free (NVERIFY4res *resp)
void nfs4_op_open_Free (OPEN4res *resp)
void nfs4_op_open_confirm_Free (OPEN_CONFIRM4res *resp)
void nfs4_op_open_downgrade_Free (OPEN_DOWNGRADE4res *resp)
void nfs4_op_openattr_Free (OPENATTR4res *resp)
void nfs4_op_putfh_Free (PUTFH4res *resp)
void nfs4_op_putpubfh_Free (PUTPUBFH4res *resp)
void nfs4_op_putrootfh_Free (PUTROOTFH4res *resp)
void nfs4_op_read_Free (READ4res *resp)
void nfs4_op_readdir_Free (READDIR4res *resp)
void nfs4_op_readlink_Free (READLINK4res *resp)
void nfs4_op_release_lockowner_Free (RELEASE_LOCKOWNER4res *resp)
void nfs4_op_rename_Free (RENAME4res *resp)
void nfs4_op_remove_Free (REMOVE4res *resp)
void nfs4_op_renew_Free (RENEW4res *resp)
void nfs4_op_restorefh_Free (RESTOREFH4res *resp)
 frees what was allocared to handle nfs4_op_restorefh.
void nfs4_op_savefh_Free (SAVEFH4res *resp)
void nfs4_op_secinfo_Free (SECINFO4res *resp)
void nfs4_op_setattr_Free (SETATTR4res *resp)
void nfs4_op_setclientid_Free (SETCLIENTID4res *resp)
void nfs4_op_setclientid_confirm_Free (SETCLIENTID_CONFIRM4res *resp)
void nfs4_op_verify_Free (VERIFY4res *resp)
void nfs4_op_write_Free (WRITE4res *resp)
void nfs4_op_close_CopyRes (CLOSE4res *resp_dst, CLOSE4res *resp_src)
void nfs4_op_lock_CopyRes (LOCK4res *resp_dst, LOCK4res *resp_src)
void nfs4_op_locku_CopyRes (LOCKU4res *resp_dst, LOCKU4res *resp_src)
void nfs4_op_open_CopyRes (OPEN4res *resp_dst, OPEN4res *resp_src)
void nfs4_op_open_confirm_CopyRes (OPEN_CONFIRM4res *resp_dst, OPEN_CONFIRM4res *resp_src)
void nfs4_op_open_downgrade_CopyRes (OPEN_DOWNGRADE4res *resp_dst, OPEN_DOWNGRADE4res *resp_src)
void compound_data_Free (compound_data_t *data)
int nfs4_ExportToPseudoFS (exportlist_t *pexportlist)
pseudofs_tnfs4_GetPseudoFs (void)
int nfs4_SetCompoundExport (compound_data_t *data)
int nfs4_MakeCred (compound_data_t *data)
int nfs4_fsal_attr_To_Fattr (fsal_attrib_list_t *pattr, fattr4 *Fattr, compound_data_t *data, bitmap4 *Bitmap)
int nfs4_Fattr_To_fsal_attr (fsal_attrib_list_t *pattr, fattr4 *Fattr, compound_data_t *data, bitmap4 *Bitmap)
int nfs4_Fattr_Check_Access (fattr4 *Fattr, int access)
int nfs4_Fattr_Check_Access_Bitmap (bitmap4 *pbitmap, int access)
int nfs4_Fattr_Supported (fattr4 *Fattr)
int nfs4_Fattr_Supported_Bitmap (bitmap4 *pbitmap)
int nfs4_Fattr_cmp (fattr4 *Fattr1, fattr4 *Fattr2)
int nfs4_referral_str_To_Fattr_fs_location (char *input_str, char *buff, u_int *plen)
int uid2name (char *name, uid_t *puid)
int name2uid (char *name, uid_t *puid)
int gid2name (char *name, gid_t *pgid)
int name2gid (char *name, gid_t *pgid)
void free_utf8 (utf8string *utf8str)
int utf8dup (utf8string *newstr, utf8string *oldstr)
int utf82str (char *str, int size, utf8string *utf8str)
int str2utf8 (char *str, utf8string *utf8str)
int uid2utf8 (uid_t uid, utf8string *utf8str)
int utf82uid (utf8string *utf8str, uid_t *Uid)
int uid2str (uid_t uid, char *str)
int str2uid (char *str, uid_t *Uid)
int gid2str (gid_t gid, char *str)
int str2gid (char *str, gid_t *Gid)
int gid2utf8 (gid_t gid, utf8string *utf8str)
int utf82gid (utf8string *utf8str, gid_t *Gid)
void nfs4_stringid_split (char *buff, char *uidname, char *domainname)
seqid4 nfs4_NextSeqId (seqid4 seqid)
int nfs2_Sattr_To_FSALattr (fsal_attrib_list_t *pFSAL_attr, sattr2 *pFattr)
int nfs2_FSALattr_To_Fattr (exportlist_t *pexport, fsal_attrib_list_t *pFSAL_attr, fattr2 *pFattr)
int nfs3_FSALattr_To_Fattr (exportlist_t *pexport, const fsal_attrib_list_t *pFSAL_attr, fattr3 *pFattr)
int nfs3_FSALattr_To_PartialFattr (const fsal_attrib_list_t *, fsal_attrib_mask_t, fattr3 *)
int nfs3_Sattr_To_FSALattr (fsal_attrib_list_t *pFSAL_attr, sattr3 *pFattr)
nfsstat3 nfs3_fh_to_xattrfh (nfs_fh3 *pfhin, nfs_fh3 *pfhout)
int nfs3_Access_Xattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, struct svc_req *preq, nfs_res_t *pres)
int nfs3_Getattr_Xattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, struct svc_req *preq, nfs_res_t *pres)
int nfs3_Lookup_Xattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, struct svc_req *preq, nfs_res_t *pres)
int nfs3_Read_Xattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, struct svc_req *preq, nfs_res_t *pres)
int nfs3_Create_Xattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, struct svc_req *preq, nfs_res_t *pres)
int nfs3_Write_Xattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, struct svc_req *preq, nfs_res_t *pres)
int nfs3_Readdir_Xattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, struct svc_req *preq, nfs_res_t *pres)
int nfs3_Readdirplus_Xattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, struct svc_req *preq, nfs_res_t *pres)
int nfs3_Remove_Xattr (nfs_arg_t *parg, exportlist_t *pexport, fsal_op_context_t *pcontext, struct svc_req *preq, nfs_res_t *pres)
int nfs4_PseudoToFattr (pseudofs_entry_t *psfsp, fattr4 *Fattr, compound_data_t *data, nfs_fh4 *objFH, bitmap4 *Bitmap)
int nfs4_PseudoToFhandle (nfs_fh4 *fh4p, pseudofs_entry_t *psfsentry)
int Fattr4_To_FSAL_attr (fsal_attrib_list_t *pFSAL_attr, fattr4 *pFattr, nfs_fh4 *fh)
int nfs4_Fattr_To_FSAL_attr (fsal_attrib_list_t *pFSAL_attr, fattr4 *pFattr)
int nfs4_attrmap_to_FSAL_attrmask (bitmap4 attrmap, fsal_attrib_mask_t *attrmask)
int nfs4_Fattr_Fill (fattr4 *Fattr, int attrcnt, uint32_t *attrlist, int valsiz, char *attrvals)
int nfs4_supported_attrs_to_fattr (char *outbuf)
int nfs4_FSALattr_To_Fattr (exportlist_t *pexport, fsal_attrib_list_t *pattr, fattr4 *Fattr, compound_data_t *data, nfs_fh4 *objFH, bitmap4 *Bitmap)
void nfs4_list_to_bitmap4 (bitmap4 *b, uint_t plen, uint32_t *pval)
void nfs4_bitmap4_to_list (bitmap4 *b, uint_t *plen, uint32_t *pval)
int nfs4_bitmap4_Remove_Unsupported (bitmap4 *pbitmap)
nfsstat4 nfs4_Errno (cache_inode_status_t error)
nfsstat3 nfs3_Errno (cache_inode_status_t error)
nfsstat2 nfs2_Errno (cache_inode_status_t error)
int nfs3_AllocateFH (nfs_fh3 *fh)
int nfs4_AllocateFH (nfs_fh4 *fh)
uint64_t nfs_htonl64 (uint64_t arg64)
uint64_t nfs_ntohl64 (uint64_t arg64)
int idmap_compute_hash_value (char *name, uint32_t *phashval)
int nfs4_Is_Fh_Referral (nfs_fh4 *pfh)
int nfs4_Set_Fh_Referral (nfs_fh4 *pfh)

Detailed Description

Prototypes for NFS protocol functions.

Author:
Author:
deniel
Date:
Date:
2006/01/05 15:15:01
Version:
Revision:
1.31

nfs_proto_functions.h : Prototypes for NFS protocol functions.

Definition in file nfs_proto_functions.h.


Define Documentation

#define CAN_BE_DUP   0x0004

Definition at line 200 of file nfs_proto_functions.h.

#define MAKES_WRITE   0x0001

Definition at line 198 of file nfs_proto_functions.h.

#define NEEDS_CRED   0x0002

Definition at line 199 of file nfs_proto_functions.h.

#define NFS4_ATTRVALS_BUFFLEN   1024

Definition at line 62 of file nfs_proto_functions.h.

#define NOTHING_SPECIAL   0x0000

Definition at line 197 of file nfs_proto_functions.h.

#define SUPPORTS_GSS   0x0008

Definition at line 201 of file nfs_proto_functions.h.


Typedef Documentation

typedef union nfs_arg__ nfs_arg_t
typedef void(* nfs_protocol_free_t)(nfs_res_t *)

Definition at line 211 of file nfs_proto_functions.h.

Definition at line 203 of file nfs_proto_functions.h.

typedef union nfs_res__ nfs_res_t
typedef int(* nfsremote_protocol_function_t)(CLIENT *, nfs_arg_t *, nfs_res_t *)

Definition at line 209 of file nfs_proto_functions.h.