Documentation
¶
Index ¶
Constants ¶
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 ¶
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 ¶
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.