
This contains quite a bit (also bumps google/uuid to 1.3.0). Some HostProcess container improvements to get ready for whenever it goes to stable in Kubernetes, Hyper-V (windows) container support for CRI, and a plethora of other small additions and fixes. Signed-off-by: Daniel Canter <dcanter@microsoft.com>
28 lines
693 B
Go
28 lines
693 B
Go
//go:build windows
|
|
|
|
package wclayer
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/Microsoft/hcsshim/internal/hcserror"
|
|
"github.com/Microsoft/hcsshim/internal/oc"
|
|
"go.opencensus.io/trace"
|
|
)
|
|
|
|
// UnprepareLayer disables the filesystem filter for the read-write layer with
|
|
// the given id.
|
|
func UnprepareLayer(ctx context.Context, path string) (err error) {
|
|
title := "hcsshim::UnprepareLayer"
|
|
ctx, span := oc.StartSpan(ctx, title) //nolint:ineffassign,staticcheck
|
|
defer span.End()
|
|
defer func() { oc.SetSpanStatus(span, err) }()
|
|
span.AddAttributes(trace.StringAttribute("path", path))
|
|
|
|
err = unprepareLayer(&stdDriverInfo, path)
|
|
if err != nil {
|
|
return hcserror.New(err, title, "")
|
|
}
|
|
return nil
|
|
}
|