Lines Matching refs:mountpoint
543 const string& mountpoint, in MountFilesystem() argument
555 mountpoint.c_str(), in MountFilesystem()
563 << mountpoint << " as " << fstype; in MountFilesystem()
571 bool UnmountFilesystem(const string& mountpoint) { in UnmountFilesystem() argument
574 if (umount(mountpoint.c_str()) == 0) in UnmountFilesystem()
581 LOG(INFO) << "Not a mountpoint: " << mountpoint; in UnmountFilesystem()
584 PLOG(WARNING) << "Error unmounting " << mountpoint << " after " << num_retries in UnmountFilesystem()
586 if (umount2(mountpoint.c_str(), MNT_DETACH) != 0) { in UnmountFilesystem()
593 bool IsMountpoint(const std::string& mountpoint) { in IsMountpoint() argument
602 if (lstat(mountpoint.c_str(), &stdir) != 0) { in IsMountpoint()
603 PLOG(ERROR) << "Error stat'ing " << mountpoint; in IsMountpoint()
609 base::FilePath parent(mountpoint); in IsMountpoint()