ark::supervisor::MountSingleton

Defined in header “ark/supervisor/mount_singleton.hh”.


This singleton provides a thread that is capable of remounting shares. It’s kept in a separate thread for priveledge separation, so that the smallest footprint possible has access to mount commands.

Typedefs

  • using MountFlag = int32_t
    An enumeration of mounting flags.

Methods

  • ~MountSingleton()
    Destructor, waits for the thread to exit gracefully, if it hasn’t exited already.

  • void stop()
    Stops the thread, if it hasn’t stopped already. Returns after the thread is done.

  • void remount(const std::filesystem::path & path, MountFlag flag)
    Remounts the given path, either read-write or read-only. Throws if the mount fails with a useful error message.