mirror of
https://github.com/containers/podman.git
synced 2025-12-10 07:42:12 +08:00
Bump github.com/containers/common from 0.38.4 to 0.39.0
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.38.4 to 0.39.0. - [Release notes](https://github.com/containers/common/releases) - [Commits](https://github.com/containers/common/compare/v0.38.4...v0.39.0) Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
19
vendor/github.com/containers/common/libimage/image.go
generated
vendored
19
vendor/github.com/containers/common/libimage/image.go
generated
vendored
@@ -658,25 +658,6 @@ func (i *Image) Unmount(force bool) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// MountPoint returns the fully-evaluated mount point of the image. If the
|
||||
// image isn't mounted, an empty string is returned.
|
||||
func (i *Image) MountPoint() (string, error) {
|
||||
counter, err := i.runtime.store.Mounted(i.TopLayer())
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
if counter == 0 {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
layer, err := i.runtime.store.Layer(i.TopLayer())
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return filepath.EvalSymlinks(layer.MountPoint)
|
||||
}
|
||||
|
||||
// Size computes the size of the image layers and associated data.
|
||||
func (i *Image) Size() (int64, error) {
|
||||
return i.runtime.store.ImageSize(i.ID())
|
||||
|
||||
Reference in New Issue
Block a user