![]() |
XRootD
|
#include <XrdPfcFPurgeState.hh>
Classes | |
struct | PurgeCandidate |
Public Types | |
using | list_i = list_t::iterator |
using | list_t = std::list< PurgeCandidate > |
using | map_i = map_t::iterator |
using | map_t = std::multimap< time_t, PurgeCandidate > |
Public Member Functions | |
FPurgeState (long long iNBytesReq, XrdOss &oss) | |
Constructor. More... | |
void | CheckFile (const FsTraversal &fst, const char *fname, Info &info, struct stat &fstat) |
time_t | getMinTime () const |
long long | getNBytesTotal () const |
long long | getNStBlocksTotal () const |
void | MoveListEntriesToMap () |
void | ProcessDirAndRecurse (FsTraversal &fst) |
list_t & | refList () |
map_t & | refMap () |
void | setMinTime (time_t min_time) |
void | setUVKeepMinTime (time_t min_time) |
bool | TraverseNamespace (const char *root_path) |
Definition at line 22 of file XrdPfcFPurgeState.hh.
using XrdPfc::FPurgeState::list_i = list_t::iterator |
Definition at line 37 of file XrdPfcFPurgeState.hh.
using XrdPfc::FPurgeState::list_t = std::list<PurgeCandidate> |
Definition at line 36 of file XrdPfcFPurgeState.hh.
using XrdPfc::FPurgeState::map_i = map_t::iterator |
Definition at line 39 of file XrdPfcFPurgeState.hh.
using XrdPfc::FPurgeState::map_t = std::multimap<time_t, PurgeCandidate> |
Definition at line 38 of file XrdPfcFPurgeState.hh.
FPurgeState::FPurgeState | ( | long long | iNBytesReq, |
XrdOss & | oss | ||
) |
Constructor.
Definition at line 29 of file XrdPfcFPurgeState.cc.
void FPurgeState::CheckFile | ( | const FsTraversal & | fst, |
const char * | fname, | ||
Info & | info, | ||
struct stat & | fstat | ||
) |
Open info file. Look at the UV stams and last access time. Store the file in sorted map or in a list.s
fname | name of cache-info file |
Info | object |
stat | of the given file |
Definition at line 58 of file XrdPfcFPurgeState.cc.
References XrdPfc::Cache::Conf(), Macaroons::Debug, fstat(), XrdPfc::Info::GetCkSumState(), XrdPfc::Info::GetLatestDetachTime(), XrdPfc::Info::GetNoCkSumTimeForUVKeep(), XrdPfc::FsTraversal::m_current_path, and TRACE.
Referenced by ProcessDirAndRecurse().
|
inline |
Definition at line 62 of file XrdPfcFPurgeState.hh.
|
inline |
Definition at line 65 of file XrdPfcFPurgeState.hh.
Referenced by XrdPfc::OldStylePurgeDriver().
|
inline |
Definition at line 64 of file XrdPfcFPurgeState.hh.
void FPurgeState::MoveListEntriesToMap | ( | ) |
Move remaing entires to the member map. This is used for cold files and for files collected from purge plugin (really?).
Definition at line 41 of file XrdPfcFPurgeState.cc.
Referenced by XrdPfc::OldStylePurgeDriver().
void FPurgeState::ProcessDirAndRecurse | ( | FsTraversal & | fst | ) |
Definition at line 106 of file XrdPfcFPurgeState.cc.
References XrdPfc::FsTraversal::cd_down(), XrdPfc::FsTraversal::cd_up(), CheckFile(), XrdPfc::FsTraversal::close_delete(), XrdPfc::FsTraversal::m_current_dirs, XrdPfc::FsTraversal::m_current_files, XrdPfc::FsTraversal::m_current_path, XrdPfc::FsTraversal::open_at_ro(), XrdPfc::Info::Read(), XrdPfc::Info::s_infoExtension, TRACE, XrdPfc::FsTraversal::unlink_at(), Warning, XrdOssOK, and XrdSysE2T().
Referenced by TraverseNamespace().
|
inline |
Definition at line 59 of file XrdPfcFPurgeState.hh.
|
inline |
Definition at line 58 of file XrdPfcFPurgeState.hh.
Referenced by XrdPfc::UnlinkPurgeStateFilesInMap().
|
inline |
Definition at line 61 of file XrdPfcFPurgeState.hh.
Referenced by XrdPfc::OldStylePurgeDriver().
|
inline |
Definition at line 63 of file XrdPfcFPurgeState.hh.
Referenced by XrdPfc::OldStylePurgeDriver().
bool FPurgeState::TraverseNamespace | ( | const char * | root_path | ) |
Definition at line 157 of file XrdPfcFPurgeState.cc.
References XrdPfc::FsTraversal::begin_traversal(), XrdPfc::FsTraversal::end_traversal(), XrdPfc::FsTraversal::m_protected_top_dirs, and ProcessDirAndRecurse().
Referenced by XrdPfc::OldStylePurgeDriver().