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

RepositoryMain.C File Reference

#include "VestaLog.H"
#include "Recovery.H"
#include "VestaSource.H"
#include "ShortIdImpl.H"
#include "ReadersWritersLock.H"
#include "VRConcurrency.H"
#include "VestaConfig.H"
#include "VestaSourceServer.H"
#include "VMemPool.H"
#include "VRWeed.H"
#include "DirShortId.H"
#include "FPShortId.H"
#include "Mastership.H"
#include "Replication.H"
#include "nfsd.H"
#include "logging.H"
#include "getopt.h"
#include <stdlib.h>
#include <pthread.h>
#include <errno.h>
#include <iomanip>
#include <stdio.h>
#include <signal.h>
#include <sys/resource.h>
#include "MutableSidref.H"
#include "timing.H"
#include "lock_timing.H"

Go to the source code of this file.

Defines

#define progress(letter)
#define DEFAULT_UMASK   022

Functions

void GlueInit ()
void Recover (Text log_dir, int first, Text log_dir2, bool bakckp)
void SigHandler (int sig)
void Siguser1Inner (int sig)
void Sigusr1Handler (int sig)
void Siguser2Inner (int sig)
void Sigusr2Handler (int sig)
int main (int argc, char *argv[])

Variables

char * program_name
int nfs_bufreqs
int nfs_threads
int nfs_port
const char * Version
time_t serverStartTime


Define Documentation

#define DEFAULT_UMASK   022
 

Definition at line 76 of file RepositoryMain.C.

Referenced by main().

#define progress letter   ) 
 

Definition at line 64 of file RepositoryMain.C.

Referenced by main().


Function Documentation

void GlueInit  ) 
 

Definition at line 2505 of file glue.C.

References CowInProgress::active, allowSymlink, bsdChown, Text::cchars(), FdCache::close(), cowMax, DBG_ALWAYS, Repos::dprintf(), VestaConfig::get(), VestaConfig::get_int(), VestaConfig::get_Text(), NEW_PTRFREE_ARRAY, and shortIdSymlink.

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 186 of file RepositoryMain.C.

References Text::cchars(), CheckpointServer(), DBG_ALWAYS, DBG_NOWEEDREC, DBG_SAVECORE, DEFAULT_UMASK, DoDeletions(), Repos::dprintf(), VestaConfig::get(), VestaConfig::get_int(), VestaConfig::get_Text(), GlueInit(), VestaSource::init(), InitDirShortId(), InitFPShortId(), Repos::isDebugLevel(), VestaLog::loggingBegin(), MastershipInit1(), MastershipInit2(), VestaLog::Error::msg, SRPC::failure::msg, VestaConfig::failure::msg, nfs_bufreqs, nfs_port, nfs_threads, nfsd_init(), ok(), program_name, progress, VestaLog::Error::r, SRPC::failure::r, Recover(), VestaSource::recoveryDone(), ReplicationCleanup(), Basics::thread::self(), AccessControl::serverInit(), serverStartTime, Repos::setDebugLevel(), SourceOrDerived::setMetadataRootLocalName(), ShortIdServerExport(), ShortIdServerInit(), ShortIdServerInit2(), SigHandler(), Sigusr1Handler(), Sigusr2Handler(), SourceWeed(), usage(), Version, VestaSourceServerExport(), and VRLog.

void Recover Text  log_dir,
int  first,
Text  log_dir2,
bool  bakckp
 

Definition at line 89 of file RepositoryMain.C.

References Text::chars(), Text::Empty(), MutableSidrefCheck(), MutableSidrefInit(), MutableSidrefRecoveryCheck(), VestaLog::nextLog(), LongId::noLock, VestaLog::open(), VestaLog::openCheckpoint(), VMemPool::readCheckpoint(), RecoverFrom(), and VRLog.

Referenced by CacheS::CacheS(), main(), FV::ListApp::Recover(), and Weeder::Weeder().

void SigHandler int  sig  ) 
 

Definition at line 123 of file RepositoryMain.C.

Referenced by main().

void Siguser1Inner int  sig  ) 
 

Definition at line 152 of file RepositoryMain.C.

Referenced by Sigusr1Handler().

void Siguser2Inner int  sig  ) 
 

Definition at line 164 of file RepositoryMain.C.

Referenced by Sigusr2Handler().

void Sigusr1Handler int  sig  ) 
 

Definition at line 158 of file RepositoryMain.C.

References Siguser1Inner().

Referenced by main().

void Sigusr2Handler int  sig  ) 
 

Definition at line 170 of file RepositoryMain.C.

References Siguser2Inner().

Referenced by main().


Variable Documentation

int nfs_bufreqs
 

Definition at line 69 of file RepositoryMain.C.

Referenced by main(), and nfsd_init().

int nfs_port
 

Definition at line 357 of file nfsd.C.

int nfs_threads
 

Definition at line 70 of file RepositoryMain.C.

Referenced by main().

char* program_name
 

Definition at line 68 of file RepositoryMain.C.

time_t serverStartTime
 

Definition at line 183 of file RepositoryMain.C.

Referenced by main().

const char* Version
 


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