Skip to content

feat(diskimagekit): add RAW and ASIF image stacks - #277

Merged
Code-Hex merged 4 commits into
mainfrom
codex/diskimagekit-package
Oct 27, 2026
Merged

Code-Hex merged 4 commits into
mainfrom
codex/diskimagekit-package

Conversation

@Code-Hex

@Code-Hex Code-Hex commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Add the diskimagekit package for RAW and ASIF images, including overlay and cache layers. Callers can create images, build stacks with Open, Append, and CreateLayer, and read or write them through io.ReaderAt and io.WriterAt.

The package handles image storage in Go. Sync and Close are explicit, and a stack owns the files it opens. Internal comments explain ASIF directory updates, block inheritance, and file replacement where the ordering matters.

New ASIF images are limited to 4 PiB minus 1 MiB. Growth into metadata and layer creation over a file already owned by the stack are rejected. Sync reports storage errors; it does not guarantee recovery from power loss.

NBD export is an internal package in #278. The native attachment wrapper remains in #276.

Related to #224.

@Code-Hex
Code-Hex force-pushed the codex/diskimagekit-package branch from 9acf9ff to 413c6a4 Compare October 27, 2026 03:00
@Code-Hex Code-Hex changed the title feat(diskimagekit): add RAW and ASIF stacks with NBD export feat(diskimagekit): add RAW and ASIF image stacks Oct 27, 2026
@Code-Hex
Code-Hex merged commit 2ddc7c0 into main Oct 27, 2026
13 checks passed
@Code-Hex
Code-Hex deleted the codex/diskimagekit-package branch October 27, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant