MCPcopy
hub / github.com/firecracker-microvm/firecracker-containerd / CreateBundleLink

Method CreateBundleLink

internal/vm/dir.go:133–140  ·  view source on GitHub ↗

CreateBundleLink creates the BundleLink by symlinking to the provided bundle dir

(containerID string, bundleDir bundle.Dir)

Source from the content-addressed store, hash-verified

131
132// CreateBundleLink creates the BundleLink by symlinking to the provided bundle dir
133func (d Dir) CreateBundleLink(containerID string, bundleDir bundle.Dir) error {
134 path, err := d.BundleLink(containerID)
135 if err != nil {
136 return err
137 }
138
139 return createSymlink(bundleDir.RootPath(), path.RootPath(), "bundle")
140}
141
142// CreateAddressLink creates a symlink from the VM dir to the bundle dir for the shim address file.
143// This symlink is read by containerd.

Callers 1

CreateMethod · 0.80

Calls 3

BundleLinkMethod · 0.95
createSymlinkFunction · 0.85
RootPathMethod · 0.45

Tested by

no test coverage detected