Lines Matching refs:mountpoint
658 const string& mountpoint,
669 int rc = mount(device.c_str(), mountpoint.c_str(), fstype, mountflags,
675 << " on " << mountpoint << " as " << fstype;
683 bool UnmountFilesystem(const string& mountpoint) {
686 if (umount(mountpoint.c_str()) == 0)
693 LOG(INFO) << "Not a mountpoint: " << mountpoint;
696 PLOG(WARNING) << "Error unmounting " << mountpoint << " after " << num_retries
698 if (umount2(mountpoint.c_str(), MNT_DETACH) != 0) {
705 bool IsMountpoint(const std::string& mountpoint) {
708 // Check whether the passed mountpoint is a directory and the /.. is in the
709 // same device or not. If mountpoint/.. is in a different device it means that
714 if (lstat(mountpoint.c_str(), &stdir) != 0) {
715 PLOG(ERROR) << "Error stat'ing " << mountpoint;
721 base::FilePath parent(mountpoint);