mirror of
https://github.com/containers/podman.git
synced 2025-12-14 11:00:10 +08:00
Vendor c/storage 1.13.3
Pull in fixes to avoid double locking the mounts list when doing a save or cleanup. Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
This commit is contained in:
10
vendor/github.com/containers/storage/store.go
generated
vendored
10
vendor/github.com/containers/storage/store.go
generated
vendored
@@ -1202,7 +1202,7 @@ func (s *store) CreateContainer(id string, names []string, image, layer, metadat
|
||||
}
|
||||
}
|
||||
if cimage == nil {
|
||||
return nil, ErrImageUnknown
|
||||
return nil, errors.Wrapf(ErrImageUnknown, "error locating image with ID %q", id)
|
||||
}
|
||||
imageID = cimage.ID
|
||||
|
||||
@@ -1437,7 +1437,7 @@ func (s *store) ListImageBigData(id string) ([]string, error) {
|
||||
return bigDataNames, err
|
||||
}
|
||||
}
|
||||
return nil, ErrImageUnknown
|
||||
return nil, errors.Wrapf(ErrImageUnknown, "error locating image with ID %q", id)
|
||||
}
|
||||
|
||||
func (s *store) ImageBigDataSize(id, key string) (int64, error) {
|
||||
@@ -1516,7 +1516,7 @@ func (s *store) ImageBigData(id, key string) ([]byte, error) {
|
||||
return data, nil
|
||||
}
|
||||
}
|
||||
return nil, ErrImageUnknown
|
||||
return nil, errors.Wrapf(ErrImageUnknown, "error locating image with ID %q", id)
|
||||
}
|
||||
|
||||
func (s *store) SetImageBigData(id, key string, data []byte, digestManifest func([]byte) (digest.Digest, error)) error {
|
||||
@@ -2891,7 +2891,7 @@ func (s *store) Image(id string) (*Image, error) {
|
||||
return image, nil
|
||||
}
|
||||
}
|
||||
return nil, ErrImageUnknown
|
||||
return nil, errors.Wrapf(ErrImageUnknown, "error locating image with ID %q", id)
|
||||
}
|
||||
|
||||
func (s *store) ImagesByTopLayer(id string) ([]*Image, error) {
|
||||
@@ -2953,7 +2953,7 @@ func (s *store) ImagesByDigest(d digest.Digest) ([]*Image, error) {
|
||||
}
|
||||
}
|
||||
imageList, err := store.ByDigest(d)
|
||||
if err != nil && err != ErrImageUnknown {
|
||||
if err != nil && errors.Cause(err) != ErrImageUnknown {
|
||||
return nil, err
|
||||
}
|
||||
images = append(images, imageList...)
|
||||
|
||||
Reference in New Issue
Block a user