10 #include <sys/types.h>
24 namespace auto_umount {
29 if (mountpoint ==
"") {
45 if (all_mountpoints.empty()) {
47 "failed to read mount point list");
56 bool still_mounted =
false;
57 for (
unsigned i = 0; i < all_mountpoints.size(); ++i) {
72 expected_error = ENXIO;
74 expected_error = ENOTCONN;
77 if (dirp || (errno != expected_error)) {
78 if (dirp) closedir(dirp);
80 "%s seems not to be stalled (%d)",
mountpoint_->c_str(), errno);
87 "failed to re-gain root privileges");
90 const bool lazy =
true;
void SetMountpoint(const string &mountpoint)
bool SwitchCredentials(const uid_t uid, const gid_t gid, const bool temporarily)
void SafeSleepMs(const unsigned ms)
CVMFS_EXPORT void LogCvmfs(const LogSource source, const int mask, const char *format,...)