You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oci: Add containers-storage integration with zero-copy import
Add a native containers-storage import path that bypasses skopeo's
tar streaming by reading layer content directly from the overlay diff
directories and using reflink/hardlink to avoid data copies.
The import path is gated by a new LocalFetchOpt enum on PullOptions:
- Disabled (default): fall through to skopeo like any other transport
- IfPossible: use native import with reflink/hardlink/copy fallback
- ZeroCopy: use native import but error if zero-copy is not possible
This is exposed via `cfsctl oci pull --local-fetch disabled|auto|zerocopy`.
The hardlink path enables fs-verity on source files in-place (permanent,
irreversible) and requires CAP_DAC_READ_SEARCH for linkat(AT_EMPTY_PATH);
try_hardlink_object now checks this upfront with a clear error message.
Integration tests cover the full {ext4,xfs} x {sha256,sha512} x
{auto,zerocopy} matrix using synthetic OCI images on loopback
filesystems.
Assisted-by: OpenCode (Claude Opus 4)
Signed-off-by: Colin Walters <walters@verbum.org>
0 commit comments