Skip to content

Commit

Permalink
Check data space size during configuration processing.
Browse files Browse the repository at this point in the history
Also mention a mistake in oss.locaroot directive might be the culprit.
  • Loading branch information
osschar committed Jan 30, 2019
1 parent 49dbc7c commit e1d700d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/XrdFileCache/XrdFileCacheConfiguration.cc
Expand Up @@ -235,7 +235,12 @@ bool Cache::Config(const char *config_filename, const char *parameters)
{
if (m_output_fs->StatVS(&sP, m_configuration.m_data_space.c_str(), 1) < 0)
{
m_log.Emsg("Cache::ConfigParameters()", "error obtaining stat info for space ", m_configuration.m_data_space.c_str());
m_log.Emsg("Cache::ConfigParameters()", "error obtaining stat info for data space ", m_configuration.m_data_space.c_str());
return false;
}
if (sP.Total < 10ll << 20)
{
m_log.Emsg("Cache::ConfigParameters()", "available data space is less than 10 MB (can be due to a mistake in oss.localroot directive) for space ", m_configuration.m_data_space.c_str());
return false;
}

Expand Down

0 comments on commit e1d700d

Please sign in to comment.