...
1
2
3 package computestorage
4
5 import (
6 "context"
7
8 "github.com/Microsoft/hcsshim/internal/oc"
9 "github.com/pkg/errors"
10 "golang.org/x/sys/windows"
11 )
12
13
14
15
16
17
18
19
20
21 func FormatWritableLayerVhd(ctx context.Context, vhdHandle windows.Handle) (err error) {
22 title := "hcsshim::FormatWritableLayerVhd"
23 ctx, span := oc.StartSpan(ctx, title)
24 defer span.End()
25 defer func() { oc.SetSpanStatus(span, err) }()
26
27 err = hcsFormatWritableLayerVhd(vhdHandle)
28 if err != nil {
29 return errors.Wrap(err, "failed to format writable layer vhd")
30 }
31 return nil
32 }
33
View as plain text