Coda Distributed File System
Macros | Functions | Variables
srv.cc File Reference
#include <stdio.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/file.h>
#include <time.h>
#include "coda_string.h"
#include <errno.h>
#include <signal.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include "coda_flock.h"
#include "codaconf.h"
#include "codaenv.h"
#include <lwp/lwp.h>
#include <lwp/timer.h>
#include <rpc2/rpc2.h>
#include <rpc2/sftp.h>
#include <rpc2/codatunnel.h>
#include <partition.h>
#include <util.h>
#include <rvmlib.h>
#include <resolution.h>
#include <rvm/rvm_statistics.h>
#include <prs.h>
#include <al.h>
#include <auth2.h>
#include <res.h>
#include <vice.h>
#include <volutil.h>
#include <codadir.h>
#include <avice.h>
#include <rpc2/rpc2_addrinfo.h>
#include <volume.h>
#include <srv.h>
#include <vice.private.h>
#include <recov.h>
#include <camprivate.h>
#include <coda_globals.h>
#include <vrdb.h>
#include <rescomm.h>
#include <lockqueue.h>
#include <coda_getservbyname.h>
#include "coppend.h"
#include "daemonizer.h"
Include dependency graph for srv.cc:

Macros

#define CODADB   vice_config_path("db/prot_users.db")
 
#define KEY1   vice_config_path("db/auth2.tk")
 
#define KEY2   vice_config_path("db/auth2.tk.BAK")
 
#define MAXLWP   16
 
#define BADCLIENT   1000
 

Functions

int nice (int)
 
int Fcon_Init ()
 
void rpc2_simplifyHost (RPC2_HostIdent *, RPC2_PortIdent *)
 
void rds_printer (char *fmt...)
 
void dumpvm ()
 
void zombie (int sig) TRANSACTION_OPTIONAL
 
struct timeval * srv_rpc2_timeout ()
 
int main (int argc, char *argv[]) EXCLUDES_TRANSACTION
 
void ViceUpdateDB ()
 
void PrintCounters (FILE *fp)
 
void SwapMalloc ()
 
void SwapLog (int ign)
 
void ViceTerminate ()
 
void Die (const char *msg)
 

Variables

int SystemId
 
int AnyUserId
 
unsigned StartTime
 
int CurrentConnections
 
int Counters [MAXCNTRS]
 
const ViceFid NullFid = { 0, 0, 0 }
 
const int MaxVols = MAXVOLS
 
int probingon
 
int optimizationson
 
int Authenticate
 
int AllowResolution
 
int AllowSHA
 
int check_reintegration_retry
 
int comparedirreps
 
int pathtiming
 
int pollandyield
 
const char * CodaSrvIp
 
rvm_length_t rvm_test
 
int large = 0
 
int small = 0
 
char * SmonHost
 
int SmonPort
 
int stack = 0
 
PROCESS mainPid
 
struct camlib_recoverable_segmentcamlibRecoverableSegment
 
const char * _Rvm_Log_Device
 
const char * _Rvm_Data_Device
 
rvm_offset_t _Rvm_DataLength
 
int _Rvm_Truncate = 0
 
char * _DEBUG_p
 
int DumpVM = 0
 
int prottrunc = FALSE
 
int MallocTrace = FALSE
 
const char * vicetab = NULL
 

Macro Definition Documentation

◆ BADCLIENT

#define BADCLIENT   1000

◆ CODADB

#define CODADB   vice_config_path("db/prot_users.db")

◆ KEY1

#define KEY1   vice_config_path("db/auth2.tk")

◆ KEY2

#define KEY2   vice_config_path("db/auth2.tk.BAK")

◆ MAXLWP

#define MAXLWP   16

Function Documentation

◆ Die()

void Die ( const char *  msg)

◆ dumpvm()

void dumpvm ( )

◆ Fcon_Init()

int Fcon_Init ( )

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ nice()

int nice ( int  )

◆ PrintCounters()

void PrintCounters ( FILE *  fp)

◆ rds_printer()

void rds_printer ( char *  fmt...)

◆ rpc2_simplifyHost()

void rpc2_simplifyHost ( RPC2_HostIdent Host,
RPC2_PortIdent Port 
)

◆ srv_rpc2_timeout()

struct timeval * srv_rpc2_timeout ( )

◆ SwapLog()

void SwapLog ( int  ign)

◆ SwapMalloc()

void SwapMalloc ( )

◆ ViceTerminate()

void ViceTerminate ( )

◆ ViceUpdateDB()

void ViceUpdateDB ( )

◆ zombie()

void zombie ( int  sig)

Variable Documentation

◆ _DEBUG_p

char* _DEBUG_p

◆ _Rvm_Data_Device

const char* _Rvm_Data_Device

◆ _Rvm_DataLength

rvm_offset_t _Rvm_DataLength

◆ _Rvm_Log_Device

const char* _Rvm_Log_Device

◆ _Rvm_Truncate

int _Rvm_Truncate = 0

◆ AllowResolution

int AllowResolution

◆ AllowSHA

int AllowSHA

◆ AnyUserId

int AnyUserId

◆ Authenticate

int Authenticate

◆ camlibRecoverableSegment

struct camlib_recoverable_segment* camlibRecoverableSegment

◆ check_reintegration_retry

int check_reintegration_retry

◆ CodaSrvIp

const char* CodaSrvIp

◆ comparedirreps

int comparedirreps

◆ Counters

int Counters[MAXCNTRS]

◆ CurrentConnections

int CurrentConnections

◆ DumpVM

int DumpVM = 0

◆ large

int large = 0

◆ mainPid

PROCESS mainPid

◆ MallocTrace

int MallocTrace = FALSE

◆ MaxVols

const int MaxVols = MAXVOLS

◆ NullFid

const ViceFid NullFid = { 0, 0, 0 }

◆ optimizationson

int optimizationson

◆ pathtiming

int pathtiming

◆ pollandyield

int pollandyield

◆ probingon

int probingon

◆ prottrunc

int prottrunc = FALSE

◆ rvm_test

rvm_length_t rvm_test
extern

◆ small

int small = 0

◆ SmonHost

char* SmonHost
extern

◆ SmonPort

int SmonPort
extern

◆ stack

int stack = 0

◆ StartTime

unsigned StartTime

◆ SystemId

int SystemId

◆ vicetab

const char* vicetab = NULL