Skip to content

Commit

Permalink
Check data space size during configuration processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
osschar committed Dec 10, 2018
1 parent 9b6d582 commit 077e352
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/XrdFileCache/XrdFileCacheConfiguration.cc
Expand Up @@ -236,7 +236,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 < 1ll << 20)
{
m_log.Emsg("Cache::ConfigParameters()", "available data space is too small (less than 1 MB) ", m_configuration.m_data_space.c_str());
return false;
}

Expand Down

0 comments on commit 077e352

Please sign in to comment.