Expand description
Sidecar index for layer acceleration.
Provides wire format types, a zero-copy mmap reader, and a builder/writer for the binary per-layer index generated at OCI extraction time.
Structs§
- DirRecord
- A directory in the index (24 bytes). Sorted by path (lexicographic).
- Entry
Record - A filesystem entry in the index (40 bytes, 8-byte aligned). Grouped by parent directory (contiguous), sorted by name within each group.
- Hardlink
Ref - A hardlink reference (16 bytes, 8-byte aligned).
Sorted by
host_ino, then by path. Only entries with nlink > 1 within the layer. - Index
Builder - Builds valid sidecar index files from high-level calls.
- Index
Header - Index file header (32 bytes, offset 0).
- Mmap
Index - Zero-copy reader for a mmap’d layer sidecar index.
- Tombstone
Iter - Iterator over tombstone names packed in the string pool.
Constants§
- DIR_
FLAG_ OPAQUE - DirRecord flag: directory is opaque (hides all lower entries).
- DIR_
RECORD_ IDX_ NONE - Sentinel value for
EntryRecord.dir_record_idxon non-directory entries. - ENTRY_
FLAG_ WHITEOUT - EntryRecord flag: entry is a whiteout (masks a lower entry).
- INDEX_
MAGIC - Magic bytes: “MSBi” in little-endian.
- INDEX_
VERSION - Current wire format version.