Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

nfsd.C File Reference

#include <errno.h>
#include <signal.h>
#include <sys/time.h>
#include <pthread.h>
#include <Basics.H>
#include <getopt.h>
#include <assert.h>
#include "nfsd.H"
#include "logging.H"
#include "AccessControl.H"
#include "glue.H"
#include "timing.H"
#include "nfsStats.H"

Go to the source code of this file.

Defines

#define RQCRED_SIZE   480

Functions

 _PRO (void nfs_dispatch,(struct svc_req *rqstp, SVCXPRT *transp))
void xdr_free ()
void mallocfailed ()
int nfsd_nfsproc_null_2 (void *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_getattr_2 (nfs_fh *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_setattr_2 (sattrargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_root_2 (void *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_lookup_2 (diropargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_readlink_2 (nfs_fh *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_read_2 (readargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_writecache_2 (void *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_write_2 (writeargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_create_2 (createargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_remove_2 (diropargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_rename_2 (renameargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_link_2 (linkargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_symlink_2 (symlinkargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_mkdir_2 (createargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_rmdir_2 (diropargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_readdir_2 (readdirargs *argp, union result_types *resp, AccessControl::Identity cred)
int nfsd_nfsproc_statfs_2 (nfs_fh *argp, union result_types *resp, AccessControl::Identity cred)
void * nfsd_thread (void *arg)
void nfsd_init (int nfs_threads)

Variables

int nfs_port = NFS_PORT
char * MyNFSSocket = ""


Define Documentation

#define RQCRED_SIZE   480
 

Definition at line 360 of file nfsd.C.

Referenced by nfsd_thread().


Function Documentation

_PRO void  nfs_dispatch,
(struct svc_req *rqstp, SVCXPRT *transp) 
 

void mallocfailed  ) 
 

Definition at line 70 of file nfsd.C.

References DBG_ALWAYS, and Repos::dprintf().

void nfsd_init int  nfs_threads  ) 
 

Definition at line 437 of file nfsd.C.

References Text::cchars(), Basics::errno_Text(), Basics::thread::fork(), NEW_PTRFREE_ARRAY, nfs_bufreqs, nfsd_thread(), and Basics::thread_attr::set_stacksize().

Referenced by main().

int nfsd_nfsproc_create_2 createargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 209 of file nfsd.C.

References do_create(), and result_types::r_diropres.

int nfsd_nfsproc_getattr_2 nfs_fh *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 90 of file nfsd.C.

References do_getattr(), and result_types::r_attrstat.

int nfsd_nfsproc_link_2 linkargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 239 of file nfsd.C.

References do_hardlink(), and result_types::r_nfsstat.

int nfsd_nfsproc_lookup_2 diropargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 111 of file nfsd.C.

References do_lookup(), and result_types::r_diropres.

int nfsd_nfsproc_mkdir_2 createargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 259 of file nfsd.C.

References do_mkdir(), and result_types::r_diropres.

int nfsd_nfsproc_null_2 void *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 83 of file nfsd.C.

int nfsd_nfsproc_read_2 readargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 132 of file nfsd.C.

References any_fattr(), DEVICE_FAKE_FD, fd_inactive(), fh_fd(), result_types::r_readres, RECORD_TIME_POINT, and xlate_errno().

int nfsd_nfsproc_readdir_2 readdirargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 279 of file nfsd.C.

References do_readdir().

int nfsd_nfsproc_readlink_2 nfs_fh *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 122 of file nfsd.C.

References do_readlink(), and result_types::r_readlinkres.

int nfsd_nfsproc_remove_2 diropargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 219 of file nfsd.C.

References do_remove(), and result_types::r_nfsstat.

int nfsd_nfsproc_rename_2 renameargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 229 of file nfsd.C.

References do_rename(), and result_types::r_nfsstat.

int nfsd_nfsproc_rmdir_2 diropargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 269 of file nfsd.C.

References do_remove(), and result_types::r_nfsstat.

int nfsd_nfsproc_root_2 void *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 104 of file nfsd.C.

int nfsd_nfsproc_setattr_2 sattrargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 97 of file nfsd.C.

References do_setattr(), and result_types::r_attrstat.

int nfsd_nfsproc_statfs_2 nfs_fh *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 286 of file nfsd.C.

References do_statfs().

int nfsd_nfsproc_symlink_2 symlinkargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 249 of file nfsd.C.

References do_symlink(), and result_types::r_nfsstat.

int nfsd_nfsproc_write_2 writeargs *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 174 of file nfsd.C.

References any_fattr(), DBG_SRPC, DEVICE_FAKE_FD, Repos::dprintf(), fd_inactive(), fh_fd(), result_types::r_attrstat, RECORD_TIME_POINT, and xlate_errno().

int nfsd_nfsproc_writecache_2 void *  argp,
union result_types resp,
AccessControl::Identity  cred
 

Definition at line 167 of file nfsd.C.

void* nfsd_thread void *  arg  ) 
 

Definition at line 363 of file nfsd.C.

References NEW, nfs_dispatch(), RECORD_TIME_POINT, and RQCRED_SIZE.

Referenced by nfsd_init().

void xdr_free  ) 
 

Referenced by nfs_dispatch().


Variable Documentation

char* MyNFSSocket = ""
 

Definition at line 358 of file nfsd.C.

int nfs_port = NFS_PORT
 

Definition at line 357 of file nfsd.C.


Generated on Mon May 8 00:49:04 2006 for Vesta by  doxygen 1.4.2