Skip to content

Commit

Permalink
Merge pull request #1673 from giuseppe/chunked-convert-on-the-fly
Browse files Browse the repository at this point in the history
chunked: support converting existing images
  • Loading branch information
rhatdan authored Jul 28, 2023
2 parents c2574ca + 58405a5 commit c3da76f
Show file tree
Hide file tree
Showing 3 changed files with 245 additions and 71 deletions.
3 changes: 1 addition & 2 deletions pkg/chunked/compression_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package chunked
import (
archivetar "archive/tar"
"bytes"
"context"
"encoding/binary"
"errors"
"fmt"
Expand Down Expand Up @@ -150,7 +149,7 @@ func readEstargzChunkedManifest(blobStream ImageSourceSeekable, blobSize int64,
// readZstdChunkedManifest reads the zstd:chunked manifest from the seekable stream blobStream. The blob total size must
// be specified.
// This function uses the io.github.containers.zstd-chunked. annotations when specified.
func readZstdChunkedManifest(ctx context.Context, blobStream ImageSourceSeekable, blobSize int64, annotations map[string]string) ([]byte, []byte, int64, error) {
func readZstdChunkedManifest(blobStream ImageSourceSeekable, blobSize int64, annotations map[string]string) ([]byte, []byte, int64, error) {
footerSize := int64(internal.FooterSizeSupported)
if blobSize <= footerSize {
return nil, nil, 0, errors.New("blob too small")
Expand Down
Loading

0 comments on commit c3da76f

Please sign in to comment.