#include <XrdPfcDirState.hh>
Public Member Functions | |
| DataFsState () | |
| void | dump_recursively (int max_depth) const |
| DirState * | find_dirstate_for_lfn (const std::string &lfn, DirState **last_existing_dir=nullptr) |
| DirState * | get_root () |
| void | init_stat_reset_times (time_t t) |
| long long | reap_empty_leaf_dirs (unlink_func unlink_foo) |
| void | reset_sshot_stats (time_t last_update) |
| void | update_stats_and_usages (time_t last_update, bool collect_reap_candidates) |
Public Attributes | |
| std::vector< DirState * > | m_reap_candidates |
| DirState | m_root |
| time_t | m_sshot_stats_reset_time = 0 |
| long long | m_st_blocks_fuzz = 0 |
| time_t | m_stats_reset_time = 0 |
| Public Attributes inherited from XrdPfc::DataFsStateBase | |
| long long | m_disk_total = 0 |
| long long | m_disk_used = 0 |
| long long | m_file_usage = 0 |
| long long | m_meta_total = 0 |
| long long | m_meta_used = 0 |
| time_t | m_usage_update_time = 0 |
Definition at line 145 of file XrdPfcDirState.hh.
|
inline |
| void DataFsState::dump_recursively | ( | int | max_depth | ) | const |
Definition at line 314 of file XrdPfcDirState.cc.
References m_root, m_sshot_stats_reset_time, and XrdPfc::DataFsStateBase::m_usage_update_time.
|
inline |
Definition at line 161 of file XrdPfcDirState.hh.
References m_root.
|
inline |
|
inline |
Definition at line 157 of file XrdPfcDirState.hh.
References m_sshot_stats_reset_time, and m_stats_reset_time.
| long long DataFsState::reap_empty_leaf_dirs | ( | unlink_func | unlink_foo | ) |
Remove the empty leaves collected at the last snapshot, which reported them once more, empty. The root is never a candidate, and a parent waits for the next snapshot. Returns the leftover st_blocks taken out of the tree.
Definition at line 276 of file XrdPfcDirState.cc.
References m_reap_candidates, m_st_blocks_fuzz, and parent().
| void DataFsState::reset_sshot_stats | ( | time_t | last_update | ) |
Definition at line 308 of file XrdPfcDirState.cc.
References m_root, and m_sshot_stats_reset_time.
| void DataFsState::update_stats_and_usages | ( | time_t | last_update, |
| bool | collect_reap_candidates ) |
Definition at line 260 of file XrdPfcDirState.cc.
References m_reap_candidates, m_root, m_stats_reset_time, and XrdPfc::DataFsStateBase::m_usage_update_time.
| std::vector<DirState*> XrdPfc::DataFsState::m_reap_candidates |
Definition at line 152 of file XrdPfcDirState.hh.
Referenced by reap_empty_leaf_dirs(), and update_stats_and_usages().
| DirState XrdPfc::DataFsState::m_root |
Definition at line 147 of file XrdPfcDirState.hh.
Referenced by DataFsState(), dump_recursively(), find_dirstate_for_lfn(), get_root(), reset_sshot_stats(), and update_stats_and_usages().
| time_t XrdPfc::DataFsState::m_sshot_stats_reset_time = 0 |
Definition at line 149 of file XrdPfcDirState.hh.
Referenced by dump_recursively(), init_stat_reset_times(), and reset_sshot_stats().
| long long XrdPfc::DataFsState::m_st_blocks_fuzz = 0 |
Definition at line 151 of file XrdPfcDirState.hh.
Referenced by reap_empty_leaf_dirs().
| time_t XrdPfc::DataFsState::m_stats_reset_time = 0 |
Definition at line 148 of file XrdPfcDirState.hh.
Referenced by init_stat_reset_times(), and update_stats_and_usages().