#include <SMultiPKFile.H>
Public Types | |
typedef Table< FP::Tag, VPKFile * >::Default | VPKFileMap |
typedef Table< FP::Tag, VPKFile * >::Iterator | VPKFileIter |
typedef Table< FP::Tag, VPKFileChkPt * >::Default | ChkPtTbl |
typedef Table< FP::Tag, VPKFileChkPt * >::Iterator | ChkPtIter |
Static Public Member Functions | |
static void | OpenRead (const PKPrefix::T &pfx, std::ifstream &ifs) throw (SMultiPKFileRep::NotFound, FS::Failure) |
static std::streampos | SeekToPKFile (std::ifstream &ifs, const FP::Tag &pk, int &version) throw (SMultiPKFileRep::NotFound, FS::Failure) |
static bool | ChkptForRewrite (VPKFileMap &vpkFiles, const BitVector *toDelete, ChkPtTbl &vpkChkptTbl) throw () |
static bool | PrepareForRewrite (const PKPrefix::T &pfx, std::ifstream &ifs, SMultiPKFileRep::Header *&hdr) throw (FS::Failure, FS::EndOfFile) |
static void | Rewrite (const PKPrefix::T &pfx, bool mpkFileExists, std::ifstream &ifs, SMultiPKFileRep::Header *hdr, VPKFileMap &vpkFiles, ChkPtTbl &vpkChkptTbl, const BitVector *toDelete, EmptyPKLog *emptyPKLog, EntryState &state) throw (FS::Failure, FS::EndOfFile, VestaLog::Error) |
Static Private Member Functions | |
static std::streampos | SeekInListV1 (std::ifstream &ifs, SMultiPKFileRep::UShort numEntries, const FP::Tag &pk) throw (SMultiPKFileRep::NotFound, FS::EndOfFile, FS::Failure) |
static std::streampos | SeekInSortedListV1 (std::ifstream &ifs, SMultiPKFileRep::UShort numEntries, const FP::Tag &pk) throw (SMultiPKFileRep::NotFound, FS::EndOfFile, FS::Failure) |
static SMultiPKFileRep::Header * | ReadHeader (const PKPrefix::T &pfx, bool readEntries, std::ifstream &ifs) throw (FS::Failure, FS::EndOfFile) |
static Text | Name (const PKPrefix::T &pfx, int granBits) throw () |
static Text | FullName (const PKPrefix::T &pfx) throw () |
static void | OpenAtomicWrite (const PKPrefix::T &pfx, AtomicFile &ofs) throw (FS::Failure) |
static void | DeleteFile (const PKPrefix::T &pfx) throw (FS::Failure) |
static void | MakeDirs (const Text &name) throw (FS::Failure) |
static void | PauseDeletionThread () throw () |
|
Definition at line 72 of file SMultiPKFile.H. |
|
Definition at line 71 of file SMultiPKFile.H. |
|
Definition at line 68 of file SMultiPKFile.H. |
|
Definition at line 67 of file SMultiPKFile.H. |
|
Definition at line 195 of file SMultiPKFile.C. References VPKFile::CheckPoint(), VPKFile::HasNewEntries(), Basics::mutex::lock(), VPKFile::mu, Table< K, V >::Iterator::Next(), Table< K, V >::Iterator::Reset(), and Basics::mutex::unlock(). Referenced by VMultiPKFile::ChkptForWrite(). |
|
Definition at line 758 of file SMultiPKFile.C. References Config_SCachePath, FS::Delete(), FS::DeleteDir(), Text::FindCharR(), Text::Length(), and Text::Sub(). |
|
Definition at line 688 of file SMultiPKFile.C. References Config_SCachePath, and PKPrefix::Granularity(). |
|
Definition at line 721 of file SMultiPKFile.C. References Text::cchars(), Text::Length(), and PathnameSep. |
|
Definition at line 678 of file SMultiPKFile.C. |
|
Definition at line 695 of file SMultiPKFile.C. References Text::chars(). |
|
Definition at line 83 of file SMultiPKFile.C. References FS::OpenReadOnly(). Referenced by VPKFile::Lookup(), and VPKFile::ReadPKFHeaderTail(). |
|
Definition at line 774 of file SMultiPKFile.C. References Config_WeedPauseDur, Debug::Lock(), Basics::thread::pause(), Debug::Timestamp(), and Debug::Unlock(). |
|
Definition at line 247 of file SMultiPKFile.C. References FS::Close(), NEW, and ReadHeader(). Referenced by CacheS::VToSCache(). |
|
Definition at line 661 of file SMultiPKFile.C. References NEW_CONSTR, and SMultiPKFileRep::Header::ReadEntries(). Referenced by PrepareForRewrite(). |
|
|
Definition at line 147 of file SMultiPKFile.C. References SMultiPKFileRep::HeaderEntry::offset, and SMultiPKFileRep::HeaderEntry::pk. |
|
Definition at line 159 of file SMultiPKFile.C. References Compare(), SMultiPKFileRep::HeaderEntry::offset, SMultiPKFileRep::HeaderEntry::pk, FS::Posn(), FS::Seek(), and SMultiPKFileRep::HeaderEntry::Size(). |
|
Definition at line 96 of file SMultiPKFile.C. References SMultiPKFileRep::HT_HashTable, SMultiPKFileRep::HT_List, SMultiPKFileRep::HT_SortedList, SMultiPKFileRep::Header::num, FS::Seek(), SPKFileRep::SourceFuncVersion, SMultiPKFileRep::Header::type, VestaSourceSRPC::version, and SMultiPKFileRep::Header::version. Referenced by VPKFile::Lookup(), and VPKFile::ReadPKFHeaderTail(). |