Lines Matching refs:map_file
252 static int produce_block_map(const char* path, const char* map_file, const char* blk_dev, in produce_block_map() argument
255 if (!android::base::RemoveFileIfExists(map_file, &err)) { in produce_block_map()
256 LOG(ERROR) << "failed to remove the existing map file " << map_file << ": " << err; in produce_block_map()
259 std::string tmp_map_file = std::string(map_file) + ".tmp"; in produce_block_map()
442 if (rename(tmp_map_file.c_str(), map_file) == -1) { in produce_block_map()
443 PLOG(ERROR) << "failed to rename " << tmp_map_file << " to " << map_file; in produce_block_map()
447 std::string file_name = map_file; in produce_block_map()
465 static int uncrypt(const char* input_path, const char* map_file, const int socket) { in uncrypt() argument
499 LOG(INFO) << "writing block map " << map_file; in uncrypt()
500 return produce_block_map(path, map_file, blk_dev, encrypted, f2fs_fs, socket); in uncrypt()
513 static bool uncrypt_wrapper(const char* input_path, const char* map_file, const int socket) { in uncrypt_wrapper() argument
527 CHECK(map_file != nullptr); in uncrypt_wrapper()
530 int status = uncrypt(input_path, map_file, socket); in uncrypt_wrapper()
623 const char* map_file = CACHE_BLOCK_MAP.c_str(); in main() local
633 map_file = argv[2]; in main()
647 bool success = uncrypt_wrapper(input_path, map_file, -1); in main()
682 success = uncrypt_wrapper(input_path, map_file, socket_fd); in main()