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

VestaSource Class Reference

#include <VestaSource.H>

Inheritance diagram for VestaSource:

VestaAttribs VRErrorCode VDirChangeable VDirEvaluator VDirSurrogate VDirVolatileRoot VLeaf List of all members.

Public Types

typedef bool(* listCallback )(void *closure, typeTag type, Arc arc, unsigned int index, Bit32 pseudoInode, ShortId fileSid, bool master)
enum  dupeCheck { dontReplace = 0, replaceDiff, replaceNonMaster }
enum  typeTag {
  immutableFile = 0, mutableFile, immutableDirectory, appendableDirectory,
  mutableDirectory, ghost, stub, deleted,
  outdated, volatileDirectory, evaluatorDirectory, device,
  volatileROEDirectory, evaluatorROEDirectory, gap, unused = 15
}

Public Member Functions

virtual void resync (AccessControl::Identity who=NULL) throw (SRPC::failure)
VestaSourcegetParent () throw (SRPC::failure)
virtual errorCode read (void *buffer, int *nbytes, Basics::uint64 offset, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual errorCode readWhole (std::ostream &out, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual bool executable () throw (SRPC::failure)
virtual Basics::uint64 size () throw (SRPC::failure)
virtual errorCode write (const void *buffer, int *nbytes, Basics::uint64 offset, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual errorCode setExecutable (bool x, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual errorCode setSize (Basics::uint64 s, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual time_t timestamp () throw (SRPC::failure)
virtual errorCode setTimestamp (time_t ts, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual ShortId shortId () throw (SRPC::failure)
virtual errorCode lookup (Arc arc, VestaSource *&result, AccessControl::Identity who=NULL, unsigned int indexOffset=0) throw (SRPC::failure)
virtual errorCode lookupPathname (const char *pathname, VestaSource *&result, AccessControl::Identity who=NULL, char pathnameSep=PathnameSep) throw (SRPC::failure)
virtual errorCode lookupIndex (unsigned int index, VestaSource *&result, char *arcbuf=NULL) throw (SRPC::failure)
virtual errorCode reallyDelete (Arc arc, AccessControl::Identity who=NULL, bool existCheck=true, time_t timestamp=0) throw (SRPC::failure)
virtual errorCode insertFile (Arc arc, ShortId sid, bool master, AccessControl::Identity who=NULL, dupeCheck chk=dontReplace, VestaSource **newvs=NULL, time_t timestamp=0, FP::Tag *fptag=NULL) throw (SRPC::failure)
virtual errorCode insertMutableFile (Arc arc, ShortId sid, bool master, AccessControl::Identity who=NULL, dupeCheck chk=dontReplace, VestaSource **newvs=NULL, time_t timestamp=0) throw (SRPC::failure)
virtual errorCode insertImmutableDirectory (Arc arc, VestaSource *dir, bool master, AccessControl::Identity who=NULL, dupeCheck chk=dontReplace, VestaSource **newvs=NULL, time_t timestamp=0, FP::Tag *fptag=NULL) throw (SRPC::failure)
virtual errorCode insertAppendableDirectory (Arc arc, bool master, AccessControl::Identity who=NULL, dupeCheck chk=dontReplace, VestaSource **newvs=NULL, time_t timestamp=0) throw (SRPC::failure)
virtual errorCode insertMutableDirectory (Arc arc, VestaSource *dir, bool master, AccessControl::Identity who=NULL, dupeCheck chk=dontReplace, VestaSource **newvs=NULL, time_t timestamp=0) throw (SRPC::failure)
virtual errorCode insertGhost (Arc arc, bool master, AccessControl::Identity who=NULL, dupeCheck chk=dontReplace, VestaSource **newvs=NULL, time_t timestamp=0) throw (SRPC::failure)
virtual errorCode insertStub (Arc arc, bool master, AccessControl::Identity who=NULL, dupeCheck chk=dontReplace, VestaSource **newvs=NULL, time_t timestamp=0) throw (SRPC::failure)
virtual errorCode renameTo (Arc arc, VestaSource *fromDir, Arc fromArc, AccessControl::Identity who=NULL, dupeCheck chk=dontReplace, time_t timestamp=0) throw (SRPC::failure)
virtual errorCode list (unsigned int firstIndex, listCallback callback, void *closure, AccessControl::Identity who=NULL, bool deltaOnly=false, unsigned int indexOffset=0)
virtual errorCode getBase (VestaSource *&result, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual errorCode makeMutable (VestaSource *&result, ShortId sid=NullShortId, Basics::uint64 copyMax=(Basics::uint64)-1, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual errorCode copyToMutable (VestaSource *&result, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual errorCode makeFilesImmutable (unsigned int threshold, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual errorCode setMaster (bool state, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual errorCode setIndexMaster (unsigned int index, bool state, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual Text host () throw ()
virtual Text port () throw ()
virtual errorCode cedeMastership (const char *requestid, const char **grantidOut, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual bool hasName () throw ()
virtual void setHasName (bool val) throw ()
virtual bool visited () throw ()
virtual void setVisited (bool val) throw ()
virtual void mark (bool byName=true, ArcTable *hidden=NULL) throw ()
virtual void freeTree () throw ()
virtual Bit32 checkpoint (Bit32 &nextSP, std::fstream &ckpt) throw ()
Bit32 indexToPseudoInode (unsigned int index) throw ()
VRErrorCode::errorCode setAttrib (const char *name, const char *value, AccessControl::Identity who=NULL, time_t timestamp=0) throw (SRPC::failure)
VRErrorCode::errorCode clearAttrib (const char *name, AccessControl::Identity who=NULL, time_t timestamp=0) throw (SRPC::failure)
VRErrorCode::errorCode addAttrib (const char *name, const char *value, AccessControl::Identity who=NULL, time_t timestamp=0) throw (SRPC::failure)
VRErrorCode::errorCode removeAttrib (const char *name, const char *value, AccessControl::Identity who=NULL, time_t timestamp=0) throw (SRPC::failure)
virtual errorCode writeAttrib (attribOp op, const char *name, const char *value, AccessControl::Identity who=NULL, time_t timestamp=0) throw (SRPC::failure)
virtual errorCode measureDirectory (directoryStats &result, AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual errorCode collapseBase (AccessControl::Identity who=NULL) throw (SRPC::failure)
virtual unsigned int linkCount ()
virtual VestaSourcecopy () throw ()
virtual ~VestaSource ()

Static Public Member Functions

static const char * errorCodeString (errorCode err) throw ()
static const char * typeTagString (typeTag type) throw ()
static char typeTagChar (typeTag type) throw ()
static VestaSourcerepositoryRoot (LongId::lockKindTag lockKind=LongId::noLock, ReadersWritersLock **lock=NULL) throw (SRPC::failure)
static VestaSourcemutableRoot (LongId::lockKindTag lockKind=LongId::noLock, ReadersWritersLock **lock=NULL) throw (SRPC::failure)
static VestaSourcevolatileRoot (LongId::lockKindTag lockKind=LongId::noLock, ReadersWritersLock **lock=NULL) throw (SRPC::failure)
static void init () throw ()
static void recoveryDone () throw ()

Public Attributes

typeTag type
LongId longid
bool master
Bit32 pseudoInode
FP::Tag fptag
AccessControl ac
Bit8rep

Static Public Attributes

static bool doLogging = false

Classes

struct  directoryStats

Member Typedef Documentation

typedef bool(* VestaSource::listCallback)(void *closure, typeTag type, Arc arc, unsigned int index, Bit32 pseudoInode, ShortId fileSid, bool master)
 

Definition at line 442 of file VestaSource.H.


Member Enumeration Documentation

enum VestaSource::dupeCheck
 

Enumeration values:
dontReplace 
replaceDiff 
replaceNonMaster 

Definition at line 185 of file VestaSource.H.

enum VestaSource::typeTag
 

Enumeration values:
immutableFile 
mutableFile 
immutableDirectory 
appendableDirectory 
mutableDirectory 
ghost 
stub 
deleted 
outdated 
volatileDirectory 
evaluatorDirectory 
device 
volatileROEDirectory 
evaluatorROEDirectory 
gap 
unused 

Definition at line 194 of file VestaSource.H.


Constructor & Destructor Documentation

virtual VestaSource::~VestaSource  )  [inline, virtual]
 

Definition at line 674 of file VestaSource.H.


Member Function Documentation

VRErrorCode::errorCode VestaSource::addAttrib const char *  name,
const char *  value,
AccessControl::Identity  who = NULL,
time_t  timestamp = 0
throw (SRPC::failure) [inline]
 

Definition at line 612 of file VestaSource.H.

Referenced by apply_sattr(), and main().

VestaSource::errorCode VestaSource::cedeMastership const char *  requestid,
const char **  grantidOut,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate.

Definition at line 1144 of file Mastership.C.

References appendableDirectory, Text::cchars(), VestaLog::commit(), DBG_MASTERSHIP, Repos::dprintf(), Text::Empty(), VRErrorCode::invalidArgs, LongId::isAncestorOf(), Repos::isDebugLevel(), Text::Length(), HintsClosure::list, MastershipAccessCheck(), NEW_PTRFREE_ARRAY, VRErrorCode::noPermission, VRErrorCode::notMaster, HintsClosure::now, HintsClosure::nowtxt, VRErrorCode::ok, AccessControl::ownership, Repos::pr_nfs_fh(), RootLongId, VestaLog::start(), VRLog, and HintsClosure::vs.

Referenced by AcquireMastership().

Bit32 VestaSource::checkpoint Bit32 nextSP,
std::fstream &  ckpt
throw () [virtual]
 

Reimplemented in VDirChangeable, VDirEvaluator, and VDirVolatileRoot.

Definition at line 506 of file VestaSourceCommon.C.

Referenced by VMemPool::writeCheckpoint().

VRErrorCode::errorCode VestaSource::clearAttrib const char *  name,
AccessControl::Identity  who = NULL,
time_t  timestamp = 0
throw (SRPC::failure) [inline]
 

Definition at line 606 of file VestaSource.H.

VestaSource::errorCode VestaSource::collapseBase AccessControl::Identity  who = NULL  )  throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, and VDirSurrogate.

Definition at line 603 of file VestaSourceCommon.C.

References VRErrorCode::inappropriateOp.

Referenced by main().

VestaSource * VestaSource::copy  )  throw () [virtual]
 

Reimplemented in VDirChangeable, VDirSurrogate, and VDirVolatileRoot.

Definition at line 614 of file VestaSourceCommon.C.

VestaSource::errorCode VestaSource::copyToMutable VestaSource *&  result,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Definition at line 132 of file VDirSurrogateOnly.C.

References VRErrorCode::inappropriateOp.

Referenced by do_setattr(), and WriteAttribStep::execute().

const char * VestaSource::errorCodeString errorCode  err  )  throw () [static]
 

Definition at line 538 of file VestaSourceCommon.C.

Referenced by AcquireMastership(), ReposUI::errorCodeText(), operator<<(), Replicate(), ReplicateAttribs(), RunTool(), test_thread(), and vsToFilename().

bool VestaSource::executable  )  throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate, and VLeaf.

Definition at line 268 of file VestaSourceCommon.C.

Referenced by VSStat().

void VestaSource::freeTree  )  throw () [virtual]
 

Reimplemented in VDirChangeable, and VDirEvaluator.

Definition at line 513 of file VestaSourceCommon.C.

VestaSource::errorCode VestaSource::getBase VestaSource *&  result,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, and VDirSurrogate.

Definition at line 423 of file VestaSourceCommon.C.

Referenced by test_thread().

VestaSource * VestaSource::getParent  )  throw (SRPC::failure)
 

Definition at line 149 of file VDirSurrogateOnly.C.

References LongId::getParent(), longid, VDirSurrogate::LongIdLookup(), NullLongId, and port().

Referenced by ReposUI::getMasterHintDir(), ReposUI::prevVersion(), upToVersion(), and upToWorkingDir().

bool VestaSource::hasName  )  throw () [virtual]
 

Reimplemented in VDirChangeable, and VDirEvaluator.

Definition at line 474 of file VestaSourceCommon.C.

Text VestaSource::host  )  throw () [virtual]
 

Reimplemented in VDirSurrogate.

Definition at line 583 of file VestaSourceCommon.C.

References VDirSurrogate::defaultHost().

Referenced by main(), ReplicateMissing(), RecursiveStats::visit(), and ReposUI::vsToFilename().

Bit32 VestaSource::indexToPseudoInode unsigned int  index  )  throw () [inline]
 

Definition at line 586 of file VestaSource.H.

Referenced by VDCLookupResult().

void VestaSource::init  )  throw () [static]
 

Reimplemented in VDirVolatileRoot.

Definition at line 951 of file VestaSource.C.

References ac, appendableDirectory, VestaAttribs::attribs, doLogging, fptag, AccessControl::group, VDirVolatileRoot::init(), InitVRWeed(), longid, master, AccessControl::mode, mutableDirectory, mutableRoot(), MutableRootLongId, NEW, NEW_CONSTR, AccessControl::owner, pathnameFPTag, pseudoInode, RegisterRecoveryCallback(), repositoryRoot(), RootLongId, type, volatileDirectory, volatileRoot(), and VolatileRootLongId.

Referenced by main().

VestaSource::errorCode VestaSource::insertAppendableDirectory Arc  arc,
bool  master,
AccessControl::Identity  who = NULL,
dupeCheck  chk = dontReplace,
VestaSource **  newvs = NULL,
time_t  timestamp = 0
throw (SRPC::failure) [virtual]
 

Definition at line 374 of file VestaSourceCommon.C.

Referenced by do_mkdir(), InsertAppendableDirectoryStep::execute(), ReposUI::lookupCreatePath(), and test_thread().

VestaSource::errorCode VestaSource::insertFile Arc  arc,
ShortId  sid,
bool  master,
AccessControl::Identity  who = NULL,
dupeCheck  chk = dontReplace,
VestaSource **  newvs = NULL,
time_t  timestamp = 0,
FP::Tag fptag = NULL
throw (SRPC::failure) [virtual]
 

Definition at line 344 of file VestaSourceCommon.C.

Referenced by do_hardlink(), and InsertFileStep::execute().

VestaSource::errorCode VestaSource::insertGhost Arc  arc,
bool  master,
AccessControl::Identity  who = NULL,
dupeCheck  chk = dontReplace,
VestaSource **  newvs = NULL,
time_t  timestamp = 0
throw (SRPC::failure) [virtual]
 

Definition at line 395 of file VestaSourceCommon.C.

Referenced by do_remove(), InsertGhostStep::execute(), main(), and test_thread().

VestaSource::errorCode VestaSource::insertImmutableDirectory Arc  arc,
VestaSource dir,
bool  master,
AccessControl::Identity  who = NULL,
dupeCheck  chk = dontReplace,
VestaSource **  newvs = NULL,
time_t  timestamp = 0,
FP::Tag fptag = NULL
throw (SRPC::failure) [virtual]
 

Definition at line 364 of file VestaSourceCommon.C.

Referenced by InsertImmutableDirectoryStep::execute(), and test_thread().

VestaSource::errorCode VestaSource::insertMutableDirectory Arc  arc,
VestaSource dir,
bool  master,
AccessControl::Identity  who = NULL,
dupeCheck  chk = dontReplace,
VestaSource **  newvs = NULL,
time_t  timestamp = 0
throw (SRPC::failure) [virtual]
 

Definition at line 384 of file VestaSourceCommon.C.

Referenced by do_mkdir(), InsertMutableDirectoryStep::execute(), Replicate(), and test_thread().

VestaSource::errorCode VestaSource::insertMutableFile Arc  arc,
ShortId  sid,
bool  master,
AccessControl::Identity  who = NULL,
dupeCheck  chk = dontReplace,
VestaSource **  newvs = NULL,
time_t  timestamp = 0
throw (SRPC::failure) [virtual]
 

Definition at line 354 of file VestaSourceCommon.C.

Referenced by CreateDerived(), do_create(), do_hardlink(), and InsertMutableFileStep::execute().

VestaSource::errorCode VestaSource::insertStub Arc  arc,
bool  master,
AccessControl::Identity  who = NULL,
dupeCheck  chk = dontReplace,
VestaSource **  newvs = NULL,
time_t  timestamp = 0
throw (SRPC::failure) [virtual]
 

Definition at line 404 of file VestaSourceCommon.C.

Referenced by do_symlink(), InsertStubStep::execute(), and test_thread().

unsigned int VestaSource::linkCount  )  [virtual]
 

Reimplemented in VLeaf.

Definition at line 609 of file VestaSourceCommon.C.

Referenced by file_fattr().

VestaSource::errorCode VestaSource::list unsigned int  firstIndex,
listCallback  callback,
void *  closure,
AccessControl::Identity  who = NULL,
bool  deltaOnly = false,
unsigned int  indexOffset = 0
[virtual]
 

Reimplemented in VDirChangeable, VDirEvaluator, VDirSurrogate, and VDirVolatileRoot.

Definition at line 431 of file VestaSourceCommon.C.

Referenced by AddToNewStuff(), ReposUI::cleanup(), do_readdir(), do_readlink(), do_remove(), FileEC::Eval(), VDirChangeable::list(), main(), ReplicationCleanup(), RunTool(), test_thread(), and RecursiveStats::visitDir().

VestaSource::errorCode VestaSource::lookup Arc  arc,
VestaSource *&  result,
AccessControl::Identity  who = NULL,
unsigned int  indexOffset = 0
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, VDirEvaluator, VDirSurrogate, and VDirVolatileRoot.

Definition at line 324 of file VestaSourceCommon.C.

Referenced by AddToNewStuff(), do_create(), do_getattr(), do_hardlink(), do_lookup(), do_mkdir(), do_remove(), do_rename(), do_setattr(), do_symlink(), LookupStep::execute(), VDirChangeable::insertCommon(), VDirChangeable::list(), VDirChangeable::lookup(), ReposUI::lookupCreatePath(), main(), OpenSource(), VDirChangeable::reallyDelete(), VDirChangeable::renameTo(), Replicate(), ReplicationCleanup(), and test_thread().

VestaSource::errorCode VestaSource::lookupIndex unsigned int  index,
VestaSource *&  result,
char *  arcbuf = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, VDirEvaluator, VDirSurrogate, and VDirVolatileRoot.

Definition at line 440 of file VestaSourceCommon.C.

Referenced by VDirChangeable::copyIndexToMutable(), do_remove(), LookupIndexStep::execute(), VDirChangeable::lookupIndex(), VDirChangeable::makeIndexMutable(), visitDirEntriesCallback(), RecursiveStats::visitFile(), ReposUI::vsToFilename(), and vsToFilename().

VestaSource::errorCode VestaSource::lookupPathname const char *  pathname,
VestaSource *&  result,
AccessControl::Identity  who = NULL,
char  pathnameSep = PathnameSep
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate.

Definition at line 114 of file VDirSurrogateOnly.C.

References VRErrorCode::inappropriateOp.

Referenced by AcquireMastership(), LookupPathnameStep::execute(), ReposUI::filenameToVS(), LookupPath(), main(), Replicate(), ReplicateAttribs(), and test_thread().

VestaSource::errorCode VestaSource::makeFilesImmutable unsigned int  threshold,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate.

Definition at line 141 of file VDirSurrogateOnly.C.

References VRErrorCode::inappropriateOp.

Referenced by MakeFilesImmutableStep::execute(), main(), MakeFilesImmutable(), and RunTool().

VestaSource::errorCode VestaSource::makeMutable VestaSource *&  result,
ShortId  sid = NullShortId,
Basics::uint64  copyMax = (Basics::uint64)-1,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate.

Definition at line 123 of file VDirSurrogateOnly.C.

References VRErrorCode::inappropriateOp.

Referenced by do_cow(), do_create(), do_hardlink(), do_mkdir(), do_remove(), do_rename(), main(), and test_thread().

void VestaSource::mark bool  byName = true,
ArcTable hidden = NULL
throw () [virtual]
 

Reimplemented in VDirChangeable, VDirEvaluator, and VDirVolatileRoot.

Definition at line 500 of file VestaSourceCommon.C.

VestaSource::errorCode VestaSource::measureDirectory directoryStats result,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, and VDirSurrogate.

Definition at line 595 of file VestaSourceCommon.C.

References VRErrorCode::inappropriateOp.

Referenced by process(), and RecursiveStats::visitDir().

VestaSource * VestaSource::mutableRoot LongId::lockKindTag  lockKind = LongId::noLock,
ReadersWritersLock **  lock = NULL
throw (SRPC::failure) [static]
 

Definition at line 92 of file VDirSurrogateOnly.C.

References LongId::noLock, and VDirSurrogate_init2().

Referenced by ReposUI::filenameToVS(), init(), VestaAttribsRep::markCallback(), VDirChangeable::markCallback(), MutableSidrefCheck(), MutableSidrefInit(), VMemPool::readCheckpoint(), recoveryDone(), Replicate(), ReplicationCleanup(), test_thread(), and VMemPool::writeCheckpoint().

Text VestaSource::port  )  throw () [virtual]
 

Reimplemented in VDirSurrogate.

Definition at line 589 of file VestaSourceCommon.C.

References VDirSurrogate::defaultPort().

Referenced by getParent(), main(), ReplicateMissing(), RecursiveStats::visit(), and ReposUI::vsToFilename().

VestaSource::errorCode VestaSource::read void *  buffer,
int *  nbytes,
Basics::uint64  offset,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate, and VLeaf.

Definition at line 253 of file VestaSourceCommon.C.

Referenced by ParseImports::RemoteModelSpace::getC(), and VSRead().

VestaSource::errorCode VestaSource::readWhole std::ostream &  out,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate.

Definition at line 261 of file VestaSourceCommon.C.

VestaSource::errorCode VestaSource::reallyDelete Arc  arc,
AccessControl::Identity  who = NULL,
bool  existCheck = true,
time_t  timestamp = 0
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, and VDirSurrogate.

Definition at line 335 of file VestaSourceCommon.C.

Referenced by do_remove(), ReallyDeleteStep::execute(), main(), Replicate(), and test_thread().

void VestaSource::recoveryDone  )  throw () [static]
 

Definition at line 1013 of file VestaSource.C.

References VestaLog::commit(), doLogging, mutableRoot(), MutableSidrefInit(), MutableSidrefRecoveryCheck(), VestaAttribs::opSet, VestaLog::put(), repositoryRoot(), resync(), AccessControl::runtoolUser, VestaLog::start(), Basics::OBufStream::str(), AccessControl::vadminGroup, volatileRoot(), VRLogVersion, and writeAttrib().

Referenced by main().

VRErrorCode::errorCode VestaSource::removeAttrib const char *  name,
const char *  value,
AccessControl::Identity  who = NULL,
time_t  timestamp = 0
throw (SRPC::failure) [inline]
 

Definition at line 619 of file VestaSource.H.

Referenced by apply_sattr().

VestaSource::errorCode VestaSource::renameTo Arc  arc,
VestaSource fromDir,
Arc  fromArc,
AccessControl::Identity  who = NULL,
dupeCheck  chk = dontReplace,
time_t  timestamp = 0
throw (SRPC::failure) [virtual]
 

Definition at line 413 of file VestaSourceCommon.C.

Referenced by do_rename(), and RenameToStep::execute().

VestaSource * VestaSource::repositoryRoot LongId::lockKindTag  lockKind = LongId::noLock,
ReadersWritersLock **  lock = NULL
throw (SRPC::failure) [static]
 

Definition at line 81 of file VDirSurrogateOnly.C.

References LongId::noLock, and VDirSurrogate_init2().

Referenced by AcquireMastership(), ReposUI::filenameToVS(), init(), main(), VestaAttribsRep::markCallback(), VDirChangeable::markCallback(), GatherWeedRoots::P(), VMemPool::readCheckpoint(), recoveryDone(), Replicate(), ReplicateAttribs(), ReposRoots::Scan(), test_thread(), VUpdateInit::VUpdateInit(), and VMemPool::writeCheckpoint().

void VestaSource::resync AccessControl::Identity  who = NULL  )  throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, VDirSurrogate, and VDirVolatileRoot.

Definition at line 308 of file VestaSourceCommon.C.

Referenced by ResyncStep::execute(), VDirSurrogate::mutableRoot(), VMemPool::readCheckpoint(), recoveryDone(), VDirSurrogate::repositoryRoot(), test_thread(), and VDirSurrogate::volatileRoot().

VRErrorCode::errorCode VestaSource::setAttrib const char *  name,
const char *  value,
AccessControl::Identity  who = NULL,
time_t  timestamp = 0
throw (SRPC::failure) [inline]
 

Definition at line 598 of file VestaSource.H.

Referenced by apply_sattr(), do_mkdir(), do_remove(), InsertAppendableDirectoryStep::execute(), fix_work_dir_attrib(), VDirChangeable::insertFile(), VDirChangeable::insertGhost(), VDirChangeable::insertImmutableDirectory(), VDirChangeable::insertMutableFile(), VDirChangeable::insertStub(), main(), and Replicate().

VestaSource::errorCode VestaSource::setExecutable bool  x,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate, and VLeaf.

Definition at line 293 of file VestaSourceCommon.C.

Referenced by VSSetExecutable().

void VestaSource::setHasName bool  val  )  throw () [virtual]
 

Reimplemented in VDirChangeable, and VDirEvaluator.

Definition at line 481 of file VestaSourceCommon.C.

VestaSource::errorCode VestaSource::setIndexMaster unsigned int  index,
bool  state,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, and VDirSurrogate.

Definition at line 450 of file VestaSourceCommon.C.

Referenced by SetIndexMaster(), and setMaster().

VestaSource::errorCode VestaSource::setMaster bool  state,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate.

Definition at line 568 of file VestaSourceCommon.C.

References VRErrorCode::notFound, VRErrorCode::ok, and setIndexMaster().

Referenced by SetMasterStep::execute().

VestaSource::errorCode VestaSource::setSize Basics::uint64  s,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate, and VLeaf.

Definition at line 301 of file VestaSourceCommon.C.

Referenced by VSSetSize().

VestaSource::errorCode VestaSource::setTimestamp time_t  ts,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, VDirSurrogate, and VLeaf.

Definition at line 467 of file VestaSourceCommon.C.

Referenced by apply_sattr(), SetTimestampStep::execute(), and VSSetTimestamp().

void VestaSource::setVisited bool  val  )  throw () [virtual]
 

Reimplemented in VDirChangeable, and VDirEvaluator.

Definition at line 494 of file VestaSourceCommon.C.

Referenced by VDirChangeable::mark().

ShortId VestaSource::shortId  )  throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, VDirSurrogate, and VLeaf.

Definition at line 316 of file VestaSourceCommon.C.

References NullShortId.

Referenced by AddToNewStuff(), any_fattr(), apply_sattr(), VDirChangeable::copyIndexToMutable(), CreateDerived(), do_cow(), do_hardlink(), do_readlink(), fd_inactive(), fh_fd(), OpenSource(), VDirChangeable::renameTo(), test_thread(), TextVC::TextC::TextC(), VDCLookupResult(), and RecursiveStats::visitDir().

Basics::uint64 VestaSource::size  )  throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate, and VLeaf.

Definition at line 276 of file VestaSourceCommon.C.

Referenced by any_fattr(), VDirChangeable::freeTree(), RecursiveStats::visitFile(), and VSStat().

time_t VestaSource::timestamp  )  throw (SRPC::failure) [virtual]
 

Reimplemented in VDirChangeable, VDirEvaluator, VDirSurrogate, VDirVolatileRoot, and VLeaf.

Definition at line 459 of file VestaSourceCommon.C.

Referenced by any_fattr(), apply_sattr(), main(), VDirChangeable::renameTo(), Replicate(), test_thread(), and VSStat().

char VestaSource::typeTagChar typeTag  type  )  throw () [static]
 

Definition at line 550 of file VestaSourceCommon.C.

Referenced by do_remove(), and myListCallback().

const char * VestaSource::typeTagString typeTag  type  )  throw () [static]
 

Definition at line 544 of file VestaSourceCommon.C.

Referenced by AcquireMastership(), compareListCB(), main(), Replicate(), and test_thread().

bool VestaSource::visited  )  throw () [virtual]
 

Reimplemented in VDirChangeable, and VDirEvaluator.

Definition at line 487 of file VestaSourceCommon.C.

VestaSource * VestaSource::volatileRoot LongId::lockKindTag  lockKind = LongId::noLock,
ReadersWritersLock **  lock = NULL
throw (SRPC::failure) [static]
 

Definition at line 103 of file VDirSurrogateOnly.C.

References LongId::noLock, and VDirSurrogate_init2().

Referenced by VDirVolatileRoot::createVolatileDirectory(), init(), VestaAttribsRep::markCallback(), VDirChangeable::markCallback(), VMemPool::readCheckpoint(), recoveryDone(), and VMemPool::writeCheckpoint().

VestaSource::errorCode VestaSource::write const void *  buffer,
int *  nbytes,
Basics::uint64  offset,
AccessControl::Identity  who = NULL
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate, and VLeaf.

Definition at line 284 of file VestaSourceCommon.C.

Referenced by VSWrite().

VestaSource::errorCode VestaSource::writeAttrib attribOp  op,
const char *  name,
const char *  value,
AccessControl::Identity  who = NULL,
time_t  timestamp = 0
throw (SRPC::failure) [virtual]
 

Reimplemented in VDirSurrogate.

Definition at line 202 of file VDirSurrogateOnly.C.

References VRErrorCode::inappropriateOp.

Referenced by WriteAttribStep::execute(), main(), recoveryDone(), and test_thread().


Member Data Documentation

AccessControl VestaSource::ac
 

Definition at line 555 of file VestaSource.H.

Referenced by AcquireMastership(), any_fattr(), apply_sattr(), VDirChangeable::copyIndexToMutable(), VDirVolatileRoot::createVolatileDirectory(), do_remove(), do_rename(), AccessCheckStep::execute(), fh_fd(), file_fattr(), init(), VDirChangeable::insertAppendableDirectory(), VDirChangeable::insertCommon(), VDirChangeable::insertFile(), VDirChangeable::insertGhost(), VDirChangeable::insertImmutableDirectory(), VDirChangeable::insertMutableDirectory(), VDirChangeable::insertMutableFile(), VDirChangeable::insertStub(), VDirChangeable::list(), VDirChangeable::lookup(), VDirChangeable::lookupIndex(), VDirChangeable::makeIndexMutable(), VDirChangeable::reallyDelete(), VDirChangeable::renameTo(), and VDCLookupResult().

bool VestaSource::doLogging = false [static]
 

Definition at line 105 of file VestaSource.C.

Referenced by VDirChangeable::freeTree(), init(), and recoveryDone().

FP::Tag VestaSource::fptag
 

Definition at line 227 of file VestaSource.H.

Referenced by AddToNewStuff(), Checkpoint(), VDirChangeable::copyIndexToMutable(), do_hardlink(), do_remove(), init(), VDirSurrogate::insertAppendableDirectory(), VDirChangeable::insertAppendableDirectory(), VDirSurrogate::insertFile(), VDirChangeable::insertFile(), VDirSurrogate::insertGhost(), VDirChangeable::insertGhost(), VDirSurrogate::insertImmutableDirectory(), VDirChangeable::insertImmutableDirectory(), VDirSurrogate::insertMutableDirectory(), VDirSurrogate::insertMutableFile(), VDirChangeable::insertMutableFile(), VDirSurrogate::insertStub(), VDirChangeable::insertStub(), Interpret(), VDirSurrogate::LongIdLookup(), ModelVC::ModelVC(), VDirChangeable::renameTo(), Replicate(), TextVC::TextVC(), PickleC::UnpickleVal(), and VDCLookupResult().

LongId VestaSource::longid
 

Definition at line 224 of file VestaSource.H.

Referenced by AcquireMastership(), any_fattr(), apply_sattr(), VDirChangeable::copyIndexToMutable(), VDirVolatileRoot::createVolatileDirectory(), do_cow(), do_create(), do_hardlink(), do_lookup(), do_mkdir(), do_readdir(), do_readlink(), do_setattr(), WriteAttribStep::execute(), fh_fd(), file_fattr(), getParent(), init(), VDirSurrogate::insertAppendableDirectory(), VDirChangeable::insertAppendableDirectory(), VDirChangeable::insertCommon(), VDirSurrogate::insertFile(), VDirChangeable::insertFile(), VDirSurrogate::insertGhost(), VDirChangeable::insertGhost(), VDirSurrogate::insertImmutableDirectory(), VDirChangeable::insertImmutableDirectory(), VDirSurrogate::insertMutableDirectory(), VDirChangeable::insertMutableDirectory(), VDirSurrogate::insertMutableFile(), VDirChangeable::insertMutableFile(), VDirSurrogate::insertStub(), VDirChangeable::insertStub(), VDirChangeable::list(), VDirSurrogate::LongIdLookup(), VDirChangeable::lookup(), VDirChangeable::lookupIndex(), VDirChangeable::makeIndexMutable(), VDirSurrogate::mutableRoot(), MutableSidrefCheck(), PickleC::PickleExpr(), VDirChangeable::reallyDelete(), VDirChangeable::renameTo(), Replicate(), ReplicateMissing(), VDirSurrogate::repositoryRoot(), RunTool(), PickleC::UnpickleVal(), upToVersion(), upToWorkingDir(), VDCLookupResult(), RecursiveStats::visit(), VDirSurrogate::volatileRoot(), ReposUI::vsToFilename(), and vsToFilename().

bool VestaSource::master
 

Definition at line 225 of file VestaSource.H.

Referenced by AcquireMastership(), any_fattr(), apply_sattr(), VDirChangeable::copyIndexToMutable(), do_mkdir(), do_remove(), do_symlink(), TestMasterStep::execute(), InsertAppendableDirectoryStep::execute(), ReposUI::getMasterHintDir(), init(), VDirSurrogate::insertAppendableDirectory(), VDirChangeable::insertCommon(), VDirSurrogate::insertFile(), VDirChangeable::insertFile(), VDirSurrogate::insertGhost(), VDirChangeable::insertGhost(), VDirSurrogate::insertImmutableDirectory(), VDirChangeable::insertImmutableDirectory(), VDirSurrogate::insertMutableDirectory(), VDirSurrogate::insertMutableFile(), VDirChangeable::insertMutableFile(), VDirSurrogate::insertStub(), VDirChangeable::insertStub(), VDirChangeable::list(), VDirSurrogate::LongIdLookup(), VDirChangeable::lookup(), ReposUI::lookupCreatePath(), VDirChangeable::lookupIndex(), main(), VDirChangeable::makeIndexMutable(), VDirChangeable::reallyDelete(), VDirChangeable::renameTo(), Replicate(), test_thread(), and VDirChangeable::VDirChangeable().

Bit32 VestaSource::pseudoInode
 

Definition at line 226 of file VestaSource.H.

Referenced by any_fattr(), VDirChangeable::copyIndexToMutable(), VDirVolatileRoot::createVolatileDirectory(), do_readdir(), file_fattr(), init(), VDirSurrogate::insertAppendableDirectory(), VDirChangeable::insertAppendableDirectory(), VDirSurrogate::insertFile(), VDirChangeable::insertFile(), VDirSurrogate::insertGhost(), VDirChangeable::insertGhost(), VDirSurrogate::insertImmutableDirectory(), VDirChangeable::insertImmutableDirectory(), VDirSurrogate::insertMutableDirectory(), VDirChangeable::insertMutableDirectory(), VDirSurrogate::insertMutableFile(), VDirChangeable::insertMutableFile(), VDirSurrogate::insertStub(), VDirChangeable::insertStub(), VDirChangeable::list(), VDirSurrogate::LongIdLookup(), VDirChangeable::lookup(), VDirChangeable::lookupIndex(), VDirChangeable::makeIndexMutable(), VDirChangeable::renameTo(), test_thread(), and VDCLookupResult().

Bit8* VestaSource::rep
 

Definition at line 677 of file VestaSource.H.

Referenced by VDirChangeable::collapse(), VDirChangeable::collapseBase(), VDirChangeable::copyIndexToMutable(), VDirChangeable::copyMutableToImmutable(), VDirVolatileRoot::createVolatileDirectory(), VDirChangeable::getBase(), VDirChangeable::insertAppendableDirectory(), VDirChangeable::insertImmutableDirectory(), VDirChangeable::insertMutableDirectory(), VDirChangeable::list(), VDirSurrogate::LongIdLookup(), VDirChangeable::lookup(), VDirChangeable::lookupIndex(), VDirChangeable::makeIndexMutable(), VMemPool::readCheckpoint(), VDirEvaluator::rebuildCallback(), VDirChangeable::rebuildCallback(), VDirChangeable::renameTo(), VDirChangeable::sweepCallback(), test_thread(), and VMemPool::writeCheckpoint().

typeTag VestaSource::type
 

Definition at line 223 of file VestaSource.H.

Referenced by AcquireMastership(), AddToNewStuff(), any_fattr(), apply_sattr(), VDirChangeable::attribAddr(), VDirChangeable::checkpoint(), VDirChangeable::collapse(), VDirChangeable::collapseBase(), VDirChangeable::copyIndexToMutable(), do_cow(), do_create(), do_getattr(), do_hardlink(), do_lookup(), do_mkdir(), do_readdir(), do_readlink(), do_remove(), do_rename(), do_setattr(), do_symlink(), doit(), FileEC::Eval(), VLeaf::executable(), TypeCheckStep::execute(), WriteAttribStep::execute(), fh_fd(), file_fattr(), VDirChangeable::freeTree(), VDirChangeable::getBase(), init(), VDirSurrogate::insertAppendableDirectory(), VDirChangeable::insertAppendableDirectory(), VDirChangeable::insertCommon(), VDirSurrogate::insertFile(), VDirChangeable::insertFile(), VDirSurrogate::insertGhost(), VDirChangeable::insertGhost(), VDirSurrogate::insertImmutableDirectory(), VDirChangeable::insertImmutableDirectory(), VDirSurrogate::insertMutableDirectory(), VDirChangeable::insertMutableDirectory(), VDirSurrogate::insertMutableFile(), VDirChangeable::insertMutableFile(), VDirSurrogate::insertStub(), VDirChangeable::insertStub(), IsDirectory(), VDirChangeable::list(), VDirSurrogate::LongIdLookup(), VDirEvaluator::lookup(), VDirChangeable::lookup(), VDirEvaluator::lookupIndex(), VDirChangeable::lookupIndex(), main(), VDirChangeable::makeIndexImmutable(), VDirChangeable::makeIndexMutable(), VDirChangeable::mark(), VDirChangeable::measureDirectory(), GatherWeedRoots::P(), ParseImports::RemoteModelSpace::getType(), VDirChangeable::reallyDelete(), VDirChangeable::renameTo(), Replicate(), ReplicateAttribs(), ReposRoots::Scan(), VDirChangeable::setIndexMaster(), VDirChangeable::setTimestamp(), VDirChangeable::shortId(), VLeaf::size(), VLeaf::timestamp(), PickleC::UnpickleVal(), upToVersion(), upToWorkingDir(), VDirChangeable::VDirChangeable(), RecursiveStats::visit(), and VLeaf::VLeaf().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:16 2006 for Vesta by  doxygen 1.4.2