Home | History | Annotate | Download | only in uncrypt

Lines Matching defs:map_file

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