MCPcopy Create free account
hub / github.com/containerd/nerdctl / InitFS

Function InitFS

pkg/fs/fs.go:25–27  ·  view source on GitHub ↗

InitFS will set the root location to store `internal/filesystem` ops files. These files are used to allow `WriteFile` to backup and rollback content. While they are transient in nature, they should still persist OS crashes / reboots, so, preferably under something like XDGData, rather than tmp.

(path string)

Source from the content-addressed store, hash-verified

23// While they are transient in nature, they should still persist OS crashes / reboots, so, preferably under something
24// like XDGData, rather than tmp.
25func InitFS(path string) error {
26 return filesystem.SetFilesystemOpsDirectory(path)
27}

Callers 1

ProcessRootCmdFlagsFunction · 0.92

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…