Lines Matching refs:mountpoint
647 const string& mountpoint, in MountFilesystem() argument
659 mountpoint.c_str(), in MountFilesystem()
667 << mountpoint << " as " << fstype; in MountFilesystem()
675 bool UnmountFilesystem(const string& mountpoint) { in UnmountFilesystem() argument
678 if (umount(mountpoint.c_str()) == 0) in UnmountFilesystem()
685 LOG(INFO) << "Not a mountpoint: " << mountpoint; in UnmountFilesystem()
688 PLOG(WARNING) << "Error unmounting " << mountpoint << " after " << num_retries in UnmountFilesystem()
690 if (umount2(mountpoint.c_str(), MNT_DETACH) != 0) { in UnmountFilesystem()
697 bool IsMountpoint(const std::string& mountpoint) { in IsMountpoint() argument
706 if (lstat(mountpoint.c_str(), &stdir) != 0) { in IsMountpoint()
707 PLOG(ERROR) << "Error stat'ing " << mountpoint; in IsMountpoint()
713 base::FilePath parent(mountpoint); in IsMountpoint()