if (!target_file.GetBuildProps(&build_props_)) { returnfalse;
}
std::vector<FstabInfo> fstab_info_list; if (!target_file.ParseFstabInfo(&fstab_info_list)) { returnfalse;
}
for (constauto& fstab_info : fstab_info_list) { for (constauto& directory : { "IMAGES", "RADIO" }) {
std::string entry_name = directory + fstab_info.mount_point + ".img"; if (!target_file.EntryExists(entry_name)) {
LOG(WARNING) << "Failed to find the image entry in the target file: " << entry_name; continue;
}
temp_files_.emplace_back(work_dir_); auto& image_file = temp_files_.back(); if (!target_file.ExtractImage(entry_name, fstab_info, work_dir_, &image_file)) {
LOG(ERROR) << "Failed to set up source image files."; returnfalse;
}
std::string mapped_path = image_file.path; // Rename the images to more readable ones if we want to keep the image. if (keep_images_) {
mapped_path = work_dir_ + fstab_info.mount_point + ".img";
image_file.release(); if (rename(image_file.path, mapped_path.c_str()) != 0) {
PLOG(ERROR) << "Failed to rename " << image_file.path << " to " << mapped_path; returnfalse;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.