mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Actively report to syslog when waiting for mounts
This commit is contained in:
parent
9744eab819
commit
eebd6e9eb4
4 changed files with 82 additions and 82 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue