Lines Matching refs:map_file
243 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()
514 static bool uncrypt_wrapper(const char* input_path, const char* map_file, const int socket) { in uncrypt_wrapper() argument
528 CHECK(map_file != nullptr); in uncrypt_wrapper()
531 int status = Uncrypt(input_path, map_file, socket); in uncrypt_wrapper()
624 const char* map_file = CACHE_BLOCK_MAP.c_str(); in main() local
634 map_file = argv[2]; in main()
649 bool success = uncrypt_wrapper(input_path, map_file, -1); in main()
684 success = uncrypt_wrapper(input_path, map_file, socket_fd); in main()