#include "VestaSource.H"#include "VestaConfig.H"#include "VDirSurrogate.H"#include <stdlib.h>#include <pthread.h>#include <errno.h>#include <iomanip>#include <stdio.h>Include dependency graph for TestVDirSurrogate.C:

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" } |
| void cinFPTag | ( | FP::Tag & | fptag | ) |
Definition at line 126 of file TestVDirSurrogate.C.
References FP::ByteCnt, and FP::Tag::Words().
Referenced by test_thread().
Here is the call graph for this function:

Here is the caller graph for this function:

| void cinLongId | ( | LongId & | longid | ) |
Definition at line 91 of file TestVDirSurrogate.C.
References LongId::byte, and LongId::value.
Referenced by test_thread().
Here is the caller graph for this function:

| void coutFPTag | ( | FP::Tag & | fptag | ) |
Definition at line 114 of file TestVDirSurrogate.C.
References FP::ByteCnt, and FP::Tag::Words().
Referenced by test_thread().
Here is the call graph for this function:

Here is the caller graph for this function:

| void coutLongId | ( | const LongId & | longid | ) |
Definition at line 79 of file TestVDirSurrogate.C.
References LongId::byte, LongId::length(), and LongId::value.
Referenced by test_thread().
Here is the call graph for this function:

Here is the caller graph for this function:

| 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().
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 1011 of file TestVDirSurrogate.C.
References SRPC::failure::msg, VestaConfig::failure::msg, SRPC::failure::r, and test_thread().
Here is the call graph for this function:

| 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().
Here is the call graph for this function:

Here is the caller graph for this function:

| int readSrcN | ( | const int & | nextSrcN | ) |
!
Definition at line 179 of file TestVDirSurrogate.C.
Referenced by test_thread().
Here is the caller graph for this function:

| void* test_thread | ( | void * | arg | ) |
Definition at line 252 of file TestVDirSurrogate.C.
References LongId::append(), VestaAttribs::attribs, VestaSource::directoryStats::baseChainLength, boolText, cinFPTag(), cinLongId(), VestaSource::collapseBase(), coutFPTag(), coutLongId(), VDirSurrogate::createVolatileDirectory(), VDirSurrogate::deleteVolatileDirectory(), VestaSource::errorCodeString(), VDirSurrogate::fpToShortId(), LongId::fromShortId(), VestaAttribs::getAttrib(), VestaAttribs::getAttribHistory(), VestaSource::getBase(), VDirSurrogate::getNFSInfo(), LongId::getParent(), historyCb(), VestaSource::immutableFile, VestaSource::insertAppendableDirectory(), VestaSource::insertGhost(), VestaSource::insertImmutableDirectory(), VestaSource::insertMutableDirectory(), VestaSource::insertStub(), VestaSource::list(), VestaAttribs::listAttribs(), VDirSurrogate::LongIdLookup(), VDirSurrogate::LongIdValid(), LongId::lookup(), VestaSource::lookup(), VestaSource::lookupPathname(), VestaSource::makeFilesImmutable(), VestaSource::makeMutable(), VestaSource::measureDirectory(), SRPC::failure::msg, VestaSource::mutableFile, VestaSource::mutableRoot(), myListCallback(), VRErrorCode::ok, VestaAttribs::opAdd, VestaAttribs::opClear, VestaAttribs::opRemove, VestaAttribs::opSet, PathnameSep, VestaSource::pseudoInode, SRPC::failure::r, VestaSource::read(), readSrcN(), VestaSource::readWhole(), VestaSource::reallyDelete(), VDirSurrogate::replicate(), VDirSurrogate::replicateAttribs(), VestaSource::repositoryRoot(), VestaSource::resync(), VestaSource::setExecutable(), VestaSource::setMaster(), VestaSource::setSize(), VestaSource::setTimestamp(), VestaSource::shortId(), VestaSource::size(), VestaSource::timestamp(), VestaSource::directoryStats::totalEntryCount, VestaSource::directoryStats::totalEntrySize, VestaSource::typeTagString(), VestaSource::directoryStats::usedEntryCount, VestaSource::directoryStats::usedEntrySize, valueCb(), vsToFilename(), VestaSource::write(), and VestaSource::writeAttrib().
Referenced by main().
Here is the call graph for this function:

Here is the caller graph for this function:

| bool valueCb | ( | void * | cl, | |
| const char * | value | |||
| ) |
Definition at line 63 of file TestVDirSurrogate.C.
Referenced by test_thread().
Here is the caller graph for this function:

| Text vsToFilename | ( | VestaSource * | vs | ) |
Definition at line 198 of file TestVDirSurrogate.C.
References LongId::byte, DirShortIdRootLongId, VestaSource::errorCodeString(), FileShortIdRootLongId, LongId::getParent(), VestaSource::host(), Text::Length(), VestaSource::longid, VDirSurrogate::LongIdLookup(), VestaSource::lookupIndex(), MAX_ARC_LEN, MutableRootLongId, NullLongId, VRErrorCode::ok, PathnameSep, VestaSource::port(), RootLongId, Text::Sub(), LongId::value, and VolatileRootLongId.
Referenced by test_thread().
Here is the call graph for this function:

Here is the caller graph for this function:

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