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

TestVDirSurrogate.C File Reference

#include "VestaSource.H"
#include "VestaConfig.H"
#include "VDirSurrogate.H"
#include <stdlib.h>
#include <pthread.h>
#include <errno.h>
#include <iomanip>
#include <stdio.h>

Go to the source code of this file.

Functions

bool myListCallback (void *closure, VestaSource::typeTag type, Arc arc, unsigned int index, Bit32 pseudoInode, ShortId filesid, bool master)
bool valueCb (void *cl, const char *value)
bool historyCb (void *cl, VestaSource::attribOp op, const char *name, const char *value, time_t timestamp)
void coutLongId (const LongId &longid)
void cinLongId (LongId &longid)
void coutFPTag (FP::Tag &fptag)
void cinFPTag (FP::Tag &fptag)
int readSrcN (const int &nextSrcN)
 !
Text vsToFilename (VestaSource *vs)
void * test_thread (void *arg)
int main (int argc, char *argv[])

Variables

char * boolText [] = { "false", "true" }


Function Documentation

void cinFPTag FP::Tag fptag  ) 
 

Definition at line 126 of file TestVDirSurrogate.C.

References FP::ByteCnt, and FP::Tag::Words().

Referenced by test_thread().

void cinLongId LongId longid  ) 
 

Definition at line 91 of file TestVDirSurrogate.C.

References LongId::value.

Referenced by test_thread().

void coutFPTag FP::Tag fptag  ) 
 

Definition at line 114 of file TestVDirSurrogate.C.

References FP::ByteCnt, and FP::Tag::Words().

Referenced by test_thread().

void coutLongId const LongId longid  ) 
 

Definition at line 79 of file TestVDirSurrogate.C.

References LongId::length(), and LongId::value.

Referenced by test_thread().

bool historyCb void *  cl,
VestaSource::attribOp  op,
const char *  name,
const char *  value,
time_t  timestamp
 

Definition at line 70 of file TestVDirSurrogate.C.

References VestaAttribs::attribOpChar().

Referenced by test_thread().

int main int  argc,
char *  argv[]
 

Definition at line 1011 of file TestVDirSurrogate.C.

References SRPC::failure::msg, VestaConfig::failure::msg, SRPC::failure::r, and test_thread().

bool myListCallback void *  closure,
VestaSource::typeTag  type,
Arc  arc,
unsigned int  index,
Bit32  pseudoInode,
ShortId  filesid,
bool  master
 

Definition at line 49 of file TestVDirSurrogate.C.

References VestaSource::typeTagChar().

Referenced by test_thread().

int readSrcN const int &  nextSrcN  ) 
 

!

Definition at line 179 of file TestVDirSurrogate.C.

Referenced by test_thread().

void* test_thread void *  arg  ) 
 

!

!

!

Definition at line 252 of file TestVDirSurrogate.C.

References LongId::append(), VestaAttribs::attribs, VestaSource::directoryStats::baseChainLength, boolText, cinFPTag(), cinLongId(), coutFPTag(), coutLongId(), VDirSurrogate::createVolatileDirectory(), VDirSurrogate::deleteVolatileDirectory(), VestaSource::errorCodeString(), VDirSurrogate::fpToShortId(), LongId::fromShortId(), VestaAttribs::getAttrib(), VestaAttribs::getAttribHistory(), VestaSource::getBase(), VDirSurrogate::getNFSInfo(), VestaAttribs::hasAttribs(), historyCb(), VestaSource::immutableFile, VestaAttribs::inAttribs(), VestaSource::insertAppendableDirectory(), VestaSource::insertGhost(), VestaSource::insertImmutableDirectory(), VestaSource::insertMutableDirectory(), VestaSource::insertStub(), VestaSource::list(), VestaAttribs::listAttribs(), VDirSurrogate::LongIdLookup(), VDirSurrogate::LongIdValid(), VestaSource::lookup(), VestaSource::lookupPathname(), VestaSource::makeMutable(), VestaSource::master, SRPC::failure::msg, VestaSource::mutableFile, VestaSource::mutableRoot(), myListCallback(), VRErrorCode::ok, VestaAttribs::opAdd, VestaAttribs::opClear, VestaAttribs::opRemove, VestaAttribs::opSet, PathnameSep, VestaSource::pseudoInode, SRPC::failure::r, readSrcN(), VestaSource::reallyDelete(), VestaSource::rep, VDirSurrogate::replicate(), VDirSurrogate::replicateAttribs(), VestaSource::repositoryRoot(), VestaSource::resync(), VestaSource::shortId(), VestaSource::timestamp(), VestaSource::directoryStats::totalEntryCount, VestaSource::directoryStats::totalEntrySize, VestaSource::typeTagString(), VestaSource::directoryStats::usedEntryCount, VestaSource::directoryStats::usedEntrySize, valueCb(), vsToFilename(), and VestaSource::writeAttrib().

Referenced by main().

bool valueCb void *  cl,
const char *  value
 

Definition at line 63 of file TestVDirSurrogate.C.

Referenced by test_thread().

Text vsToFilename VestaSource vs  ) 
 

Definition at line 198 of file TestVDirSurrogate.C.

References DirShortIdRootLongId, VestaSource::errorCodeString(), FileShortIdRootLongId, LongId::getParent(), Text::Length(), VestaSource::longid, VDirSurrogate::LongIdLookup(), VestaSource::lookupIndex(), MAX_ARC_LEN, MutableRootLongId, NullLongId, VRErrorCode::ok, PathnameSep, RootLongId, Text::Sub(), LongId::value, and VolatileRootLongId.

Referenced by test_thread().


Variable Documentation

char* boolText[] = { "false", "true" }
 

Definition at line 46 of file TestVDirSurrogate.C.

Referenced by test_thread().


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