mirror of
https://github.com/containers/podman.git
synced 2025-12-11 01:11:30 +08:00
vendor containers/storage@main
Mainly to pull in fixes for #1382 which is impossible to reproduce locally so let's optimistically mark it as fixed and reopen if needed in the future. Fixes: #1382 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
6
vendor/github.com/containers/storage/pkg/chunked/compressor/compressor.go
generated
vendored
6
vendor/github.com/containers/storage/pkg/chunked/compressor/compressor.go
generated
vendored
@@ -78,7 +78,7 @@ func (f *holesFinder) ReadByte() (int64, byte, error) {
|
||||
f.state = holesFinderStateFound
|
||||
}
|
||||
} else {
|
||||
if f.reader.UnreadByte(); err != nil {
|
||||
if err := f.reader.UnreadByte(); err != nil {
|
||||
return 0, 0, err
|
||||
}
|
||||
f.state = holesFinderStateRead
|
||||
@@ -95,7 +95,7 @@ func (f *holesFinder) ReadByte() (int64, byte, error) {
|
||||
return holeLen, 0, nil
|
||||
}
|
||||
if b != 0 {
|
||||
if f.reader.UnreadByte(); err != nil {
|
||||
if err := f.reader.UnreadByte(); err != nil {
|
||||
return 0, 0, err
|
||||
}
|
||||
f.state = holesFinderStateRead
|
||||
@@ -429,7 +429,7 @@ func zstdChunkedWriterWithLevel(out io.Writer, metadata map[string]string, level
|
||||
|
||||
go func() {
|
||||
ch <- writeZstdChunkedStream(out, metadata, r, level)
|
||||
io.Copy(io.Discard, r)
|
||||
_, _ = io.Copy(io.Discard, r) // Ordinarily writeZstdChunkedStream consumes all of r. If it fails, ensure the write end never blocks and eventually terminates.
|
||||
r.Close()
|
||||
close(ch)
|
||||
}()
|
||||
|
||||
2
vendor/github.com/containers/storage/pkg/chunked/storage.go
generated
vendored
2
vendor/github.com/containers/storage/pkg/chunked/storage.go
generated
vendored
@@ -17,7 +17,7 @@ type ImageSourceSeekable interface {
|
||||
}
|
||||
|
||||
// ErrBadRequest is returned when the request is not valid
|
||||
type ErrBadRequest struct {
|
||||
type ErrBadRequest struct { //nolint: errname
|
||||
}
|
||||
|
||||
func (e ErrBadRequest) Error() string {
|
||||
|
||||
Reference in New Issue
Block a user