mirror of
https://github.com/containers/podman.git
synced 2026-07-22 13:12:04 -04:00
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.24.3 to 1.24.4. - [Release notes](https://github.com/containers/storage/releases) - [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md) - [Commits](https://github.com/containers/storage/compare/v1.24.3...v1.24.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
27 lines
747 B
Go
27 lines
747 B
Go
package computestorage
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"github.com/Microsoft/hcsshim/internal/oc"
|
|
"go.opencensus.io/trace"
|
|
)
|
|
|
|
// DetachLayerStorageFilter detaches the layer storage filter on a writable container layer.
|
|
//
|
|
// `layerPath` is a path to a directory containing the layer to export.
|
|
func DetachLayerStorageFilter(ctx context.Context, layerPath string) (err error) {
|
|
title := "hcsshim.DetachLayerStorageFilter"
|
|
ctx, span := trace.StartSpan(ctx, title)
|
|
defer span.End()
|
|
defer func() { oc.SetSpanStatus(span, err) }()
|
|
span.AddAttributes(trace.StringAttribute("layerPath", layerPath))
|
|
|
|
err = hcsDetachLayerStorageFilter(layerPath)
|
|
if err != nil {
|
|
return fmt.Errorf("failed to detach layer storage filter: %s", err)
|
|
}
|
|
return nil
|
|
}
|