Skip to content

Commit 1aecb64

Browse files
author
Ramkumar Chinchani
committed
Add support for erofs and squashfs layer media types
OCI artifacts support has landed in various OCI specs v1.1.0 which allows for arbitrary artifact types, small and large. Large artifacts (even existing container images) pose a particular challenge that: 1. it takes too long to download 2. it takes too long to unpack This PR **begins** to address 2. above. squashfs (an older read-only) and erofs (newer) filesystems are already compressed full filesystems, and overlayfs compatible. Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
1 parent dd33f72 commit 1aecb64

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

specs-go/v1/mediatype.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ const (
4545
// MediaTypeImageLayerZstd is the media type used for zstd compressed
4646
// layers referenced by the manifest.
4747
MediaTypeImageLayerZstd = "application/vnd.oci.image.layer.v1.tar+zstd"
48+
49+
// MediaTypeErofs specifies the media type as erofs filesystem layer
50+
// https://www.iana.org/assignments/media-types/application/vnd.erofs
51+
MediaTypeErofs = "application/vnd.erofs"
52+
53+
// MediaTypeSquashfs specifies the media type as squashfs filesystem layer
54+
MediaTypeSquashfs = "application/vnd.squashfs"
4855
)
4956

5057
// Non-distributable layer media-types.

0 commit comments

Comments
 (0)