Lines Matching refs:linkpath
569 status_t Symlink(const std::string& target, const std::string& linkpath) { in Symlink() argument
570 if (Unlink(linkpath) < 0) { in Symlink()
573 if (TEMP_FAILURE_RETRY(symlink(target.c_str(), linkpath.c_str())) < 0) { in Symlink()
574 PLOG(ERROR) << "Failed to create symlink " << linkpath << " to " << target; in Symlink()
580 status_t Unlink(const std::string& linkpath) { in Unlink() argument
581 if (TEMP_FAILURE_RETRY(unlink(linkpath.c_str())) < 0 && errno != EINVAL && errno != ENOENT) { in Unlink()
582 PLOG(ERROR) << "Failed to unlink " << linkpath; in Unlink()
1596 std::string linkpath(StringPrintf("/mnt/user/%d/self", user_id)); in MountUserFuse() local
1597 result = PrepareDir(linkpath, 0755, AID_ROOT, AID_ROOT); in MountUserFuse()
1599 PLOG(ERROR) << "Failed to prepare directory " << linkpath; in MountUserFuse()
1602 linkpath += "/primary"; in MountUserFuse()
1603 Symlink("/storage/emulated/" + std::to_string(user_id), linkpath); in MountUserFuse()