• Home
  • Raw
  • Download

Lines Matching full:patch

3  * Elide and patch handling for 'fsverity setup'
19 /* An elision or a patch */
23 bool patch; /* false if elision, true if patch */ member
24 u8 data[]; /* replacement data (if patch=true) */
27 /* Maximum supported patch size, in bytes */
57 ext->patch = false; in parse_elide_option()
66 /* Parse a --patch=OFFSET,PATCHFILE option */
89 error_msg("patch file '%s' is empty", patchfile.name); in parse_patch_option()
93 error_msg("Patch file '%s' is too long. Max patch size is %d bytes.", in parse_patch_option()
100 ext->patch = true; in parse_patch_option()
110 error_msg("Invalid --patch option: '%s'. Must be formatted as OFFSET,PATCHFILE", in parse_patch_option()
131 * Given the lists of --elide and --patch options, validate and load the
156 /* Parse the --patch options */ in load_elisions_and_patches()
172 exts[j - 1]->patch ? "Patch" : "Elision", in load_elisions_and_patches()
175 exts[j]->patch ? "patch" : "elision", in load_elisions_and_patches()
210 exts[i]->patch ? "Patch" : "Elision", in apply_elisions_and_patches()
225 exts[i]->patch ? "patch" : "elision", in apply_elisions_and_patches()
231 if (exts[i]->patch && in apply_elisions_and_patches()
257 if (ext->patch) { in total_elide_patch_ext_length()
269 * Append the elide and patch extensions (if any) to the given buffer.
281 } patch; in append_elide_patch_exts() member
291 if (ext->patch) { in append_elide_patch_exts()
293 u.patch.hdr.offset = cpu_to_le64(ext->offset); in append_elide_patch_exts()
294 ASSERT(ext->length <= sizeof(u.patch.data)); in append_elide_patch_exts()
295 memcpy(u.patch.data, ext->data, ext->length); in append_elide_patch_exts()
296 extlen = sizeof(u.patch.hdr) + ext->length; in append_elide_patch_exts()