Home
last modified time | relevance | path

Searched refs:map_file (Results 1 – 1 of 1) sorted by relevance

/bootable/recovery/uncrypt/
Duncrypt.cpp243 static int ProductBlockMap(const std::string& path, const std::string& map_file, in ProductBlockMap() argument
246 if (!android::base::RemoveFileIfExists(map_file, &err)) { in ProductBlockMap()
247 LOG(ERROR) << "failed to remove the existing map file " << map_file << ": " << err; in ProductBlockMap()
250 std::string tmp_map_file = map_file + ".tmp"; in ProductBlockMap()
447 if (rename(tmp_map_file.c_str(), map_file.c_str()) == -1) { in ProductBlockMap()
448 PLOG(ERROR) << "failed to rename " << tmp_map_file << " to " << map_file; in ProductBlockMap()
452 std::string dir_name = android::base::Dirname(map_file); in ProductBlockMap()
469 static int Uncrypt(const std::string& input_path, const std::string& map_file, int socket) { in Uncrypt() argument
500 LOG(INFO) << "writing block map " << map_file; in Uncrypt()
501 return ProductBlockMap(path, map_file, blk_dev, encrypted, f2fs_fs, socket); in Uncrypt()
[all …]