diff options
Diffstat (limited to 'src/state_machine.hpp')
-rw-r--r-- | src/state_machine.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/state_machine.hpp b/src/state_machine.hpp index 388b79a..c0f331f 100644 --- a/src/state_machine.hpp +++ b/src/state_machine.hpp @@ -282,6 +282,15 @@ struct MountPointStateMachine { const bool isLegacy = (state.machine.config.mode == Configuration::Mode::legacy); + +#if !LEGACY_MODE_ENABLED + if (isLegacy) + { + return ReadyState(state, std::errc::invalid_argument, + "Legacy mode is not supported"); + } +#endif + addMountPointInterface(state); addProcessInterface(state); addServiceInterface(state, isLegacy); |