fs_wait_for_mount.cpp

This commit is contained in:
Antonio SJ Musumeci 2025-04-21 20:45:25 -05:00
parent a2fbf27a9d
commit d0572f2902

View File

@ -105,7 +105,7 @@ _check_mounted(const struct stat &src_st_,
}
static
void
int
_wait_for_mount(const struct stat &src_st_,
const fs::PathVector &tgt_paths_,
const std::chrono::milliseconds &timeout_)
@ -155,9 +155,10 @@ _wait_for_mount(const struct stat &src_st_,
syslog_warning("Continuing to mount mergerfs despite %u branches not "
"being different from the mountpoint filesystem",
failures.size());
return failures.size();
}
void
int
fs::wait_for_mount(const fs::Path &src_path_,
const fs::PathVector &tgt_paths_,
const std::chrono::milliseconds &timeout_)
@ -171,5 +172,5 @@ fs::wait_for_mount(const fs::Path &src_path_,
src_path_.c_str(),
strerror(errno));
::_wait_for_mount(src_st,tgt_paths_,timeout_);
return ::_wait_for_mount(src_st,tgt_paths_,timeout_);
}