![]() |
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, time_t atime, 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 24 of file XrdPfcFPurgeState.cc.
void FPurgeState::CheckFile | ( | const FsTraversal & | fst, |
const char * | fname, | ||
time_t | atime, | ||
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 53 of file XrdPfcFPurgeState.cc.
References fstat(), and XrdPfc::FsTraversal::m_current_path.
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 36 of file XrdPfcFPurgeState.cc.
Referenced by XrdPfc::OldStylePurgeDriver().
void FPurgeState::ProcessDirAndRecurse | ( | FsTraversal & | fst | ) |
Definition at line 85 of file XrdPfcFPurgeState.cc.
References XrdPfc::FsTraversal::cd_down(), XrdPfc::FsTraversal::cd_up(), CheckFile(), XrdPfc::FsTraversal::m_current_dirs, XrdPfc::FsTraversal::m_current_files, and XrdPfc::Info::s_infoExtension.
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 119 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().