/vesta/vestasys.org/vesta/repos/87/src/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"

Include dependency graph for RepositoryMain.C:

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 77 of file RepositoryMain.C.

Referenced by main().

#define progress ( letter   ) 

Definition at line 65 of file RepositoryMain.C.

Referenced by main().


Function Documentation

void GlueInit (  ) 

Definition at line 2529 of file glue.C.

References allowSymlink, bsdChown, Text::cchars(), FdCache::close(), cowInProgress, cowMax, DBG_ALWAYS, Repos::dprintf(), Basics::errno_Text(), VestaConfig::get(), VestaConfig::get_int(), VestaConfig::get_Text(), NEW_PTRFREE_ARRAY, shortIdSymlink, and shortIdSymlinkPrefix.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 187 of file RepositoryMain.C.

References Text::cchars(), CheckpointServer(), DBG_ALWAYS, DBG_NOWEEDREC, DBG_SAVECORE, VMemPool::debugDump(), DEFAULT_UMASK, DoDeletions(), Repos::dprintf(), Basics::errno_Text(), 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.

Here is the call graph for this function:

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

Definition at line 90 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().

Here is the call graph for this function:

Here is the caller graph for this function:

void SigHandler ( int  sig  ) 

Definition at line 124 of file RepositoryMain.C.

Referenced by main().

Here is the caller graph for this function:

void Siguser1Inner ( int  sig  ) 

Definition at line 153 of file RepositoryMain.C.

Referenced by Sigusr1Handler().

Here is the caller graph for this function:

void Siguser2Inner ( int  sig  ) 

Definition at line 165 of file RepositoryMain.C.

Referenced by Sigusr2Handler().

Here is the caller graph for this function:

void Sigusr1Handler ( int  sig  ) 

Definition at line 159 of file RepositoryMain.C.

References Siguser1Inner().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void Sigusr2Handler ( int  sig  ) 

Definition at line 171 of file RepositoryMain.C.

References Siguser2Inner().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

int nfs_bufreqs

Definition at line 70 of file RepositoryMain.C.

Referenced by main(), and nfsd_init().

int nfs_port

Definition at line 360 of file nfsd.C.

int nfs_threads

Definition at line 71 of file RepositoryMain.C.

Referenced by main().

char* program_name

Definition at line 69 of file RepositoryMain.C.

time_t serverStartTime

Definition at line 184 of file RepositoryMain.C.

Referenced by main().

const char* Version


Generated on Fri May 25 00:25:12 2007 for Vesta by  doxygen 1.5.1