![]() |
XRootD
|
Classes | |
struct | FS |
Public Types | |
typedef list_t::iterator | list_i |
typedef std::list< FS > | list_t |
typedef map_t::iterator | map_i |
typedef std::multimap< time_t, FS > | map_t |
Public Member Functions | |
FPurgeState (long long iNBytesReq, XrdOss &oss) | |
void | begin_traversal (DirState *root, const char *root_path="/") |
void | cd_down (const std::string &dir_name) |
void | cd_up () |
void | CheckFile (const char *fname, Info &info, struct stat &fstat) |
void | end_traversal () |
time_t | getMinTime () const |
long long | getNBytesTotal () const |
void | MoveListEntriesToMap () |
void | setMinTime (time_t min_time) |
void | setUVKeepMinTime (time_t min_time) |
void | TraverseNamespace (XrdOssDF *iOssDF) |
Public Attributes | |
std::string | m_current_path |
int | m_dir_level |
std::vector< std::string > | m_dir_names_stack |
DirState * | m_dir_state |
std::vector< long long > | m_dir_usage_stack |
list_t | m_flist |
map_t | m_fmap |
const char * | m_info_ext |
const size_t | m_info_ext_len |
const int | m_max_dir_level_for_stat_collection |
XrdOssAt | m_oss_at |
XrdSysTrace * | m_trace |
long long | nBytesAccum |
long long | nBytesReq |
long long | nBytesTotal |
time_t | tMinTimeStamp |
time_t | tMinUVKeepTimeStamp |
Static Public Attributes | |
static const char * | m_traceID = "Purge" |
Definition at line 222 of file XrdPfcPurge.cc.
typedef list_t::iterator XrdPfc::FPurgeState::list_i |
Definition at line 243 of file XrdPfcPurge.cc.
typedef std::list<FS> XrdPfc::FPurgeState::list_t |
Definition at line 242 of file XrdPfcPurge.cc.
typedef map_t::iterator XrdPfc::FPurgeState::map_i |
Definition at line 238 of file XrdPfcPurge.cc.
typedef std::multimap<time_t, FS> XrdPfc::FPurgeState::map_t |
Definition at line 237 of file XrdPfcPurge.cc.
|
inline |
Definition at line 334 of file XrdPfcPurge.cc.
References m_current_path, m_dir_names_stack, m_dir_usage_stack, and m_max_dir_level_for_stat_collection.
|
inline |
Definition at line 275 of file XrdPfcPurge.cc.
References m_current_path, m_dir_level, m_dir_state, m_dir_usage_stack, and TRACE_PURGE.
Referenced by XrdPfc::Cache::Purge().
|
inline |
Definition at line 294 of file XrdPfcPurge.cc.
References XrdPfc::DirState::find_dir(), m_current_path, m_dir_level, m_dir_names_stack, m_dir_state, m_dir_usage_stack, and m_max_dir_level_for_stat_collection.
Referenced by TraverseNamespace().
|
inline |
Definition at line 309 of file XrdPfcPurge.cc.
References XrdPfc::DirState::get_parent(), m_current_path, m_dir_level, m_dir_names_stack, m_dir_state, m_dir_usage_stack, m_max_dir_level_for_stat_collection, XrdPfc::DirState::set_usage(), and TRACE_PURGE.
Referenced by TraverseNamespace().
Definition at line 391 of file XrdPfcPurge.cc.
References XrdPfc::Cache::Conf(), Debug, fstat(), XrdPfc::Info::GetCkSumState(), XrdPfc::Info::GetLatestDetachTime(), XrdPfc::Info::GetNDownloadedBytes(), XrdPfc::Info::GetNoCkSumTimeForUVKeep(), m_current_path, m_dir_state, m_dir_usage_stack, m_flist, m_fmap, nBytesAccum, nBytesReq, nBytesTotal, tMinTimeStamp, tMinUVKeepTimeStamp, and TRACE.
Referenced by TraverseNamespace().
|
inline |
Definition at line 285 of file XrdPfcPurge.cc.
References m_current_path, m_dir_level, m_dir_state, m_dir_usage_stack, nBytesTotal, XrdPfc::DirState::set_usage(), and TRACE_PURGE.
Referenced by XrdPfc::Cache::Purge().
|
inline |
Definition at line 352 of file XrdPfcPurge.cc.
References tMinTimeStamp.
Referenced by XrdPfc::Cache::Purge().
|
inline |
Definition at line 354 of file XrdPfcPurge.cc.
References nBytesTotal.
Referenced by XrdPfc::Cache::Purge().
|
inline |
Definition at line 356 of file XrdPfcPurge.cc.
References m_flist, and m_fmap.
Referenced by XrdPfc::Cache::Purge().
|
inline |
Definition at line 351 of file XrdPfcPurge.cc.
References tMinTimeStamp.
Referenced by XrdPfc::Cache::Purge().
|
inline |
Definition at line 353 of file XrdPfcPurge.cc.
References tMinUVKeepTimeStamp.
Referenced by XrdPfc::Cache::Purge().
|
inline |
Definition at line 447 of file XrdPfcPurge.cc.
References cd_down(), cd_up(), CheckFile(), Error, fstat(), XrdOssDF::getFD(), m_current_path, m_info_ext, m_info_ext_len, m_oss_at, m_trace, XrdOssAt::Opendir(), XrdOssAt::OpenRO(), XrdPfc::Info::Read(), XrdOssDF::Readdir(), stat(), XrdOssDF::StatRet(), TRACE, TRACE_PURGE, XrdOssAt::Unlink(), Macaroons::Warning, XrdOssOK, and XrdSysE2T().
Referenced by XrdPfc::Cache::Purge().
std::string XrdPfc::FPurgeState::m_current_path |
Definition at line 261 of file XrdPfcPurge.cc.
Referenced by FPurgeState(), begin_traversal(), cd_down(), cd_up(), CheckFile(), end_traversal(), and TraverseNamespace().
int XrdPfc::FPurgeState::m_dir_level |
Definition at line 262 of file XrdPfcPurge.cc.
Referenced by begin_traversal(), cd_down(), cd_up(), and end_traversal().
std::vector<std::string> XrdPfc::FPurgeState::m_dir_names_stack |
Definition at line 265 of file XrdPfcPurge.cc.
Referenced by FPurgeState(), cd_down(), and cd_up().
DirState* XrdPfc::FPurgeState::m_dir_state |
Definition at line 260 of file XrdPfcPurge.cc.
Referenced by begin_traversal(), cd_down(), cd_up(), CheckFile(), and end_traversal().
std::vector<long long> XrdPfc::FPurgeState::m_dir_usage_stack |
Definition at line 266 of file XrdPfcPurge.cc.
Referenced by FPurgeState(), begin_traversal(), cd_down(), cd_up(), CheckFile(), and end_traversal().
list_t XrdPfc::FPurgeState::m_flist |
Definition at line 245 of file XrdPfcPurge.cc.
Referenced by CheckFile(), and MoveListEntriesToMap().
map_t XrdPfc::FPurgeState::m_fmap |
Definition at line 240 of file XrdPfcPurge.cc.
Referenced by CheckFile(), MoveListEntriesToMap(), and XrdPfc::Cache::Purge().
const char* XrdPfc::FPurgeState::m_info_ext |
Definition at line 268 of file XrdPfcPurge.cc.
Referenced by TraverseNamespace().
const size_t XrdPfc::FPurgeState::m_info_ext_len |
Definition at line 269 of file XrdPfcPurge.cc.
Referenced by TraverseNamespace().
const int XrdPfc::FPurgeState::m_max_dir_level_for_stat_collection |
Definition at line 263 of file XrdPfcPurge.cc.
Referenced by FPurgeState(), cd_down(), and cd_up().
XrdOssAt XrdPfc::FPurgeState::m_oss_at |
Definition at line 254 of file XrdPfcPurge.cc.
Referenced by TraverseNamespace().
XrdSysTrace* XrdPfc::FPurgeState::m_trace |
Definition at line 270 of file XrdPfcPurge.cc.
Referenced by TraverseNamespace().
|
static |
Definition at line 272 of file XrdPfcPurge.cc.
long long XrdPfc::FPurgeState::nBytesAccum |
Definition at line 248 of file XrdPfcPurge.cc.
Referenced by CheckFile().
long long XrdPfc::FPurgeState::nBytesReq |
Definition at line 247 of file XrdPfcPurge.cc.
Referenced by CheckFile().
long long XrdPfc::FPurgeState::nBytesTotal |
Definition at line 249 of file XrdPfcPurge.cc.
Referenced by CheckFile(), end_traversal(), and getNBytesTotal().
time_t XrdPfc::FPurgeState::tMinTimeStamp |
Definition at line 250 of file XrdPfcPurge.cc.
Referenced by CheckFile(), getMinTime(), and setMinTime().
time_t XrdPfc::FPurgeState::tMinUVKeepTimeStamp |
Definition at line 251 of file XrdPfcPurge.cc.
Referenced by CheckFile(), and setUVKeepMinTime().