20 #include "mountcleanuphandler.h"    21 #include <sys/mount.h>    25 MountCleanUpHandler::MountCleanUpHandler(
const std::string &path)
    30 bool MountCleanUpHandler::clean()
    33     if (umount2(m_path.c_str(), MNT_DETACH) == 0) {
    34         log_debug() << 
"Unmounted " << m_path;
    37         log_warn() << 
"Can't unmount " << m_path << 
" . Error :" << strerror(errno) << 
". Trying to force umount";
    38         if (umount2(m_path.c_str(), MNT_FORCE) != 0) {
    39             log_warn() << 
"Can't force unmount " << m_path << 
" . Error :" << strerror(errno);
    42         log_debug() << 
"Managed to force unmount " << m_path;
 const std::string queryName() override
queryName is needed to query member name yet its full functionality is not needed for this class...
Developers guide to adding a config item: