filesystem

package
v0.9.237-pre.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DUMP_DIR_PERMS = 0o777

Variables

This section is empty.

Functions

func PrepareDumpDir

func PrepareDumpDir(next types.Dump) types.Dump

This adapter ensures the specified dump dir exists and is writable. Creates a unique directory within this directory for the dump. Updates the CRIU server to use this newly created directory. Compresses the dump directory post-dump, based on a compression format:

  • "none" does not compress the dump directory
  • "tar" creates a tarball of the dump directory
  • "gzip" creates a gzipped tarball of the dump directory
  • "lz4" creates an lz4-compressed tarball of the dump directory

func PrepareRestoreDir

func PrepareRestoreDir(next types.Restore) types.Restore

This adapter decompresses (if required) the dump to a temporary directory for restore. Automatically detects the compression format from the file extension.

Types

This section is empty.

Jump to

Keyboard shortcuts

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