Searched refs:b_path (Results 1 – 1 of 1) sorted by relevance
2168 static bool move_ab_path(const std::string& b_path, const std::string& a_path) { in move_ab_path() argument2172 if (stat(b_path.c_str(), &s) != 0) { in move_ab_path()2175 LOG(VERBOSE) << "A/B artifact " << b_path << " does not exist!"; in move_ab_path()2179 LOG(ERROR) << "A/B artifact " << b_path << " is not a regular file."; in move_ab_path()2181 unlink(b_path.c_str()); in move_ab_path()2187 if (!unlink_and_rename(b_path.c_str(), a_path.c_str())) { in move_ab_path()2189 if (unlink(b_path.c_str()) != 0) { in move_ab_path()2190 PLOG(ERROR) << "Could not unlink " << b_path; in move_ab_path()2229 const std::string b_path = StringPrintf("%s.%s", a_path, slot_suffix.c_str()); in move_ab() local2236 if (move_ab_path(b_path, a_path)) { in move_ab()