Searched refs:b_path (Results 1 – 1 of 1) sorted by relevance
2162 static bool move_ab_path(const std::string& b_path, const std::string& a_path) { in move_ab_path() argument2166 if (stat(b_path.c_str(), &s) != 0) { in move_ab_path()2172 LOG(ERROR) << "A/B artifact " << b_path << " is not a regular file."; in move_ab_path()2174 unlink(b_path.c_str()); in move_ab_path()2180 if (!unlink_and_rename(b_path.c_str(), a_path.c_str())) { in move_ab_path()2182 if (unlink(b_path.c_str()) != 0) { in move_ab_path()2183 PLOG(ERROR) << "Could not unlink " << b_path; in move_ab_path()2230 const std::string b_path = StringPrintf("%s.%s", a_path, slot_suffix.c_str()); in move_ab() local2235 bool oat_success = move_ab_path(b_path, a_path); in move_ab()