#include <SourceOrDerived.H>
Public Member Functions | |
ShortId | create (bool leafflag=true, std::ios::openmode mode=std::ios::out, mode_t prot=default_prot) throw (SRPC::failure, Fatal) |
void | open (ShortId sid, std::ios::openmode mode=std::ios::in) throw () |
Static Public Member Functions | |
static void | setMetadataRootLocalName (char *pathname) throw () |
static char * | getMetadataRootLocalName () throw () |
static int | fdcreate (ShortId &sid, bool leafflag=true, mode_t prot=default_prot) throw (SRPC::failure, Fatal) |
static int | fdopen (ShortId sid, int oflag, mode_t prot=default_prot) throw () |
static bool | leafShortId (ShortId sid) throw () |
static bool | dirShortId (ShortId sid) throw () |
static char * | shortIdToName (ShortId sid, bool tailOnly=true) throw () |
static void | releaseResources () throw () |
static bool | touch (ShortId sid) throw () |
static int | keepDerived (ShortIdsFile ds, time_t dt, bool force=false) throw (SRPC::failure) |
static void | checkpoint () throw (SRPC::failure) |
static void | getWeedingState (ShortIdsFile &ds, time_t &dt, ShortIdsFile &ss, time_t &st, bool &sourceWeedInProgress, bool &deletionsInProgress, bool &deletionsDone, bool &checkpointInProgress) throw (SRPC::failure) |
Static Public Attributes | |
static const mode_t | default_prot = (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) |
Private Member Functions | |
void | open (const char *name, std::ios::openmode mode) |
Classes | |
class | Fatal |
|
Definition at line 449 of file SourceOrDerived.C. References ShortIdBlock::checkpoint(). Referenced by Weeder::DeletionPhase(), and main(). |
|
Definition at line 306 of file SourceOrDerived.C. References FS::Exists(), FS::IsDirectory(), ShortIdStock::newShortId(), NullShortId, FdCache::open(), shortIdToName(), and FS::Touch(). Referenced by main(). |
|
Definition at line 113 of file SourceOrDerived.H. Referenced by LongId::fromShortId(). |
|
Definition at line 388 of file SourceOrDerived.C. References ShortIdStock::newShortId(), NullShortId, FdCache::open(), and shortIdToName(). Referenced by CopyShortId(), do_create(), DoDeletions(), VDirChangeable::insertMutableFile(), main(), and SourceWeed(). |
|
Definition at line 420 of file SourceOrDerived.C. References FdCache::open(), and shortIdToName(). Referenced by FdCache::PartialCache::open(), and KeepDerived(). |
|
Definition at line 125 of file SourceOrDerived.C. References Basics::mutex::lock(), SourceOrDerived_initMRLN(), and Basics::mutex::unlock(). Referenced by init_repository_access(). |
|
Definition at line 455 of file SourceOrDerived.C. References ShortIdBlock::getWeedingState(). Referenced by main(). |
|
Definition at line 442 of file SourceOrDerived.C. References ShortIdBlock::keepDerived(). Referenced by Weeder::DeletionPhase(), and main(). |
|
Definition at line 107 of file SourceOrDerived.H. Referenced by ShortIdBlock::leaf(), and main(). |
|
Definition at line 373 of file SourceOrDerived.C. References FS::Exists(), FdCache::open(), and shortIdToName(). |
|
Definition at line 59 of file SourceOrDerived.H. Referenced by DeleteAllShortIdsBut(), main(), RunTool(), TextVC::Sid(), TextVC::TextC::TextC(), and TextVC::TextVC(). |
|
! Temporarily a no-op Definition at line 236 of file SourceOrDerived.C. |
|
Definition at line 114 of file SourceOrDerived.C. References Basics::mutex::lock(), SourceOrDerived_initMRLN(), and Basics::mutex::unlock(). Referenced by init_repository_access(), and main(). |
|
Definition at line 265 of file SourceOrDerived.C. References Basics::mutex::lock(), ShortIdBlock::shortIdToName(), SourceOrDerived_initMRLN(), and Basics::mutex::unlock(). Referenced by AddToNewStuff(), TextVC::Content(), create(), do_readlink(), DoDeletions(), fdcreate(), fdopen(), TextVC::Length(), main(), TextVC::NDS(), open(), TextVC::PrintD(), RunTool(), ShipShortId(), TextVC::Sid(), TextVC::TextC::TextC(), and touch(). |
|
Definition at line 430 of file SourceOrDerived.C. References ok(), and shortIdToName(). Referenced by main(). |
|
Definition at line 62 of file SourceOrDerived.H. |