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

logging.C File Reference

#include <Basics.H>
#include <pthread.h>
#include "nfsd.H"
#include "logging.H"

Go to the source code of this file.

Defines

#define LOG_FILE   "%s.log"

Functions

void Repos::setDebugLevel (int level)
int Repos::isDebugLevel (int level)
void Repos::dprintf (int level, const char *fmt,...)
void Repos::log_call (struct svc_req *rqstp, struct dispatch_entry *dent, union argument_types *argument)
void Repos::log_result (struct svc_req *rqstp, struct dispatch_entry *dent, union result_types *result)
void Repos::pr_void (char *buf)
void Repos::pr_sattrargs (char *buf, sattrargs *argp)
void Repos::pr_diropargs (char *buf, diropargs *argp)
void Repos::pr_readargs (char *buf, readargs *argp)
void Repos::pr_writeargs (char *buf, writeargs *argp)
void Repos::pr_createargs (char *buf, createargs *argp)
void Repos::pr_renameargs (char *buf, renameargs *argp)
void Repos::pr_linkargs (char *buf, linkargs *argp)
void Repos::pr_symlinkargs (char *buf, symlinkargs *argp)
void Repos::pr_readdirargs (char *buf, readdirargs *argp)
void Repos::pr_attrstat (char *buf, attrstat *argp)
void Repos::pr_diropres (char *buf, diropres *argp)
void Repos::pr_readlinkres (char *buf, readlinkres *argp)
void Repos::pr_readres (char *buf, readres *argp)
void Repos::pr_nfsstat (char *buf, nfsstat *argp)
void Repos::pr_readdirres (char *buf, readdirres *argp)
void Repos::pr_statfsres (char *buf, statfsres *argp)
void Repos::pr_nfs_fh (char *buf, nfs_fh *fh)
VRErrorCode::errorCode Repos::errno_to_errorCode (int err)

Variables

pthread_mutex_t dp_mutex
int debugLevel = 0


Define Documentation

#define LOG_FILE   "%s.log"
 

Definition at line 42 of file logging.C.


Function Documentation

void Repos::dprintf int  level,
const char *  fmt,
  ...
 

Definition at line 75 of file logging.C.

References debugLevel, and dp_mutex.

VRErrorCode::errorCode Repos::errno_to_errorCode int  err  ) 
 

Definition at line 354 of file logging.C.

References DBG_ALWAYS, Repos::dprintf(), VRErrorCode::invalidArgs, VRErrorCode::isADirectory, VRErrorCode::nameTooLong, VRErrorCode::noPermission, VRErrorCode::notADirectory, VRErrorCode::notFound, VRErrorCode::ok, and VRErrorCode::outOfSpace.

int Repos::isDebugLevel int  level  ) 
 

Definition at line 66 of file logging.C.

References debugLevel.

void Repos::log_call struct svc_req *  rqstp,
struct dispatch_entry dent,
union argument_types argument
 

Definition at line 101 of file logging.C.

References DBG_NFS, Repos::dprintf(), Repos::isDebugLevel(), dispatch_entry::log_print, and dispatch_entry::name.

void Repos::log_result struct svc_req *  rqstp,
struct dispatch_entry dent,
union result_types result
 

Definition at line 149 of file logging.C.

References DBG_NFS, Repos::dprintf(), Repos::isDebugLevel(), and dispatch_entry::log_print_res.

void Repos::pr_attrstat char *  buf,
attrstat *  argp
 

Definition at line 267 of file logging.C.

void Repos::pr_createargs char *  buf,
createargs *  argp
 

Definition at line 196 of file logging.C.

References Repos::pr_nfs_fh().

void Repos::pr_diropargs char *  buf,
diropargs *  argp
 

Definition at line 175 of file logging.C.

References Repos::pr_nfs_fh().

void Repos::pr_diropres char *  buf,
diropres *  argp
 

Definition at line 276 of file logging.C.

References Repos::pr_nfs_fh().

void Repos::pr_linkargs char *  buf,
linkargs *  argp
 

Definition at line 221 of file logging.C.

void Repos::pr_nfs_fh char *  buf,
nfs_fh *  fh
 

Definition at line 338 of file logging.C.

void Repos::pr_nfsstat char *  buf,
nfsstat *  argp
 

Definition at line 311 of file logging.C.

void Repos::pr_readargs char *  buf,
readargs *  argp
 

Definition at line 182 of file logging.C.

References Repos::pr_nfs_fh().

void Repos::pr_readdirargs char *  buf,
readdirargs *  argp
 

Definition at line 231 of file logging.C.

References Repos::pr_nfs_fh().

void Repos::pr_readdirres char *  buf,
readdirres *  argp
 

Definition at line 320 of file logging.C.

void Repos::pr_readlinkres char *  buf,
readlinkres *  argp
 

Definition at line 290 of file logging.C.

void Repos::pr_readres char *  buf,
readres *  argp
 

Definition at line 299 of file logging.C.

void Repos::pr_renameargs char *  buf,
renameargs *  argp
 

Definition at line 207 of file logging.C.

References Repos::pr_nfs_fh().

void Repos::pr_sattrargs char *  buf,
sattrargs *  argp
 

Definition at line 164 of file logging.C.

References Repos::pr_nfs_fh().

void Repos::pr_statfsres char *  buf,
statfsres *  argp
 

Definition at line 329 of file logging.C.

void Repos::pr_symlinkargs char *  buf,
symlinkargs *  argp
 

Definition at line 226 of file logging.C.

void Repos::pr_void char *  buf  ) 
 

Definition at line 159 of file logging.C.

void Repos::pr_writeargs char *  buf,
writeargs *  argp
 

Definition at line 189 of file logging.C.

References Repos::pr_nfs_fh().

void Repos::setDebugLevel int  level  ) 
 

Definition at line 61 of file logging.C.

References debugLevel.


Variable Documentation

int debugLevel = 0
 

Definition at line 48 of file logging.C.

Referenced by Repos::dprintf(), Repos::isDebugLevel(), and Repos::setDebugLevel().

pthread_mutex_t dp_mutex
 

Definition at line 44 of file logging.C.

Referenced by Repos::dprintf().


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