3 import "github.com/Sirupsen/logrus"
5 // ExpandSandboxSize expands the size of a layer to at least size bytes.
6 func ExpandSandboxSize(info DriverInfo, layerId string, size uint64) error {
7 title := "hcsshim::ExpandSandboxSize "
8 logrus.Debugf(title+"layerId=%s size=%d", layerId, size)
10 // Convert info to API calling convention
11 infop, err := convertDriverInfo(info)
17 err = expandSandboxSize(&infop, layerId, size)
19 err = makeErrorf(err, title, "layerId=%s size=%d", layerId, size)
24 logrus.Debugf(title+"- succeeded layerId=%s size=%d", layerId, size)