summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/configuration.hpp4
-rw-r--r--src/state_machine.hpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/configuration.hpp b/src/configuration.hpp
index 99dbec1..68606cc 100644
--- a/src/configuration.hpp
+++ b/src/configuration.hpp
@@ -39,8 +39,10 @@ class Configuration
static std::vector<std::string> toArgs(const MountPoint& mp)
{
+ const auto timeout = std::to_string(mp.timeout.value_or(30));
std::vector<std::string> args = {
- "-t", "30", "-u", mp.unixSocket, mp.nbdDevice.to_path(), "-n"};
+ "-t", timeout, "-u", mp.unixSocket, mp.nbdDevice.to_path(),
+ "-n"};
return args;
}
};
diff --git a/src/state_machine.hpp b/src/state_machine.hpp
index c0f331f..e442631 100644
--- a/src/state_machine.hpp
+++ b/src/state_machine.hpp
@@ -1002,7 +1002,7 @@ struct MountPointStateMachine
if (ret != 0)
{
// This shouldn't ever happen, perhaps best is to restart app
- LogMsg(Logger::Critical, name, " Some serious failrue happen!");
+ LogMsg(Logger::Critical, name, " Some serious failure happened!");
return false;
}
return true;