mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-04-24 14:04:05 +08:00
fs_wait_for_mount.cpp
This commit is contained in:
parent
a2fbf27a9d
commit
d0572f2902
@ -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_);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user