Actively report to syslog when waiting for mounts

This commit is contained in:
Antonio SJ Musumeci 2023-03-27 00:07:17 -04:00
parent 9744eab819
commit eebd6e9eb4
4 changed files with 82 additions and 82 deletions

View file

@ -156,7 +156,6 @@ namespace l
wait_for_mount(const Config::Read &cfg_)
{
fs::PathVector paths;
fs::PathVector failed;
std::chrono::milliseconds timeout;
paths = cfg_->branches->to_paths();
@ -167,15 +166,7 @@ namespace l
timeout = std::chrono::milliseconds(cfg_->branches_mount_timeout * 1000);
fs::wait_for_mount((std::string)cfg_->mountpoint,
paths,
timeout,
failed);
for(auto &path : failed)
syslog_warning("Branch %s was not mounted within timeout",
path.c_str());
if(failed.size())
syslog_warning("Continuing to mount mergerfs despite %u branches not "
"being different from the mountpoint filesystem",
failed.size());
timeout);
}
static