autotier
Automatic Tiering Fuse Filesystem
|
Definition: config.hpp:65
Base class of TierEngine. Deals with calling config_ constructor and holds onto some members used in ...
Definition: base.hpp:37
TierEngine component for ensuring only one instance of autotier runs for a given run path.
Definition: mutex.hpp:28
int lock_mutex(void)
Opens file at mutex_path such that if the file already exists, opening fails. Uses this as a mutex lo...
Definition: mutex.cpp:35
void unlock_mutex(void)
Deletes mutex lock file, unlocking the critical section.
Definition: mutex.cpp:41
int mutex_
File handle for mutexing tiering of files.
Definition: mutex.hpp:63
std::mutex lock_file_mt_
Used to ensure currently_tiering_ is set atomically with locking the file mutex.
Definition: mutex.hpp:48
~TierEngineMutex(void)
Destroy the Tier Engine Mutex object, calling unlock_mutex() first.
Definition: mutex.cpp:31
TierEngineMutex(const fs::path &config_path, const ConfigOverrides &config_overrides)
Construct a new Tier Engine Mutex object.
Definition: mutex.cpp:26