Lines Matching refs:b_path
1770 static bool move_ab_path(const std::string& b_path, const std::string& a_path) {
1774 if (stat(b_path.c_str(), &s) != 0) {
1780 LOG(ERROR) << "A/B artifact " << b_path << " is not a regular file.";
1782 unlink(b_path.c_str());
1788 if (!unlink_and_rename(b_path.c_str(), a_path.c_str())) {
1789 // Delete the b_path so we don't try again (or fail earlier).
1790 if (unlink(b_path.c_str()) != 0) {
1791 PLOG(ERROR) << "Could not unlink " << b_path;
1834 const std::string b_path = StringPrintf("%s.%s", a_path, slot_suffix.c_str());
1841 if (move_ab_path(b_path, a_path)) {