filesystem

package
v0.9.310 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Lists the private mounts whose contents are in the dump, each as a '<prefix>-<n>.tar'
	PRIVATE_MOUNTS_FILE   = "private_mounts.json"
	PRIVATE_MOUNTS_PREFIX = "private_mount"

	// A tmpfs is memory, so it's bound to be small next to the job's own. This is only
	// to not quietly make a huge dump out of one that isn't, going by the size of the files
	// in it as that's what ends up in the dump. A sparse file takes up next to nothing of the tmpfs.
	PRIVATE_MOUNTS_MAX_SIZE     = 1 << 30
	PRIVATE_MOUNTS_MAX_SIZE_ENV = "CEDANA_SLURM_PRIVATE_MOUNTS_MAX_SIZE"
)

Variables

This section is empty.

Functions

func DumpPrivateMounts

func DumpPrivateMounts(next types.Dump) types.Dump

A job in a mount namespace of its own is dumped from inside it (see namespaces.AddRecognizedExternalNamespacesForDump), so CRIU dumps files by path and knows nothing of the mounts. The directories SLURM's namespace plugin gives the job (e.g. its /tmp) are made for it and removed with it, and the job restored into gets new, empty ones. So their contents go into the dump.

Does nothing for a job without such directories.

func RestorePrivateMounts

func RestorePrivateMounts(next types.Restore) types.Restore

Counterpart of DumpPrivateMounts. Puts back the contents of the private mounts in the dump, into the same mounts of the job being restored into, for CRIU to find the job's files in. Does nothing if the dump has no private mounts.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL