Skip to content

Commit

Permalink
Merge pull request #899 from osschar/pfc-statvs-config-check
Browse files Browse the repository at this point in the history
Check data space size during configuration processing.
  • Loading branch information
abh3 committed Jan 31, 2019
2 parents 49dbc7c + e1d700d commit e7ee1af
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 e7ee1af

Please sign in to comment.