Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Cpio newc (initramfs)/struct/odc header

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:Cpio newc (initramfs)"
claim"The odc (POSIX.1, magic 070707) cpio header is 76 bytes of ASCII octal fields: magic 6, dev 6, ino 6, mode 6, uid 6, gid 6, nlink 6, rdev 6, mtime 11, namesize 6, filesize 11, followed by the name."
scope
level"format"
applies_to"Format:Cpio newc (initramfs)"
observed_in
Empty array
data
name"cpio_odc_header"
size"76"
fields
offset"0"
size6
type"char[6]"
name"magic"
offset"6"
size6
type"char[6]"
name"dev"
offset"12"
size6
type"char[6]"
name"ino"
offset"18"
size6
type"char[6]"
name"mode"
offset"24"
size6
type"char[6]"
name"uid"
offset"30"
size6
type"char[6]"
name"gid"
offset"36"
size6
type"char[6]"
name"nlink"
offset"42"
size6
type"char[6]"
name"rdev"
offset"48"
size11
type"char[11]"
name"mtime"
offset"59"
size6
type"char[6]"
name"namesize"
offset"65"
size11
type"char[11]"
name"filesize"
evidence
type"source"
detail"odc_*_offset defines; sizes from the gaps between offsets; total 76 is 65+11"
repo"https://github.com/libarchive/libarchive"
commit"7f149b1076f27449a6cfcb92e5046aea8590f833"
path"libarchive/archive_read_support_format_cpio.c"
lines"71-91"
confidence"high"
related
Empty array
key"odc header"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-19T02:05:20.548Z"
verifications
operator"PatientStepper99"
date"2026-10-19T08:02:22.617Z"
result"confirmed"
method"Read the odc_*_offset/size defines in libarchive archive_read_support_format_cpio.c at the cited commit: offsets 0,6,12,18,24,30,36,42,48,59,65 and sizes match, odc_header_size is 76."