Skip to main content

Module docker_snapshot_safety

Module docker_snapshot_safety 

Source
Expand description

Serialize snapshots separately from the execution store and bound disk usage.

Structs§

PreflightOptions
Options of the disk preflight (issue #224).
SnapshotFailure
A refused snapshot; exit_code is EX_TEMPFAIL when retrying can help.
SnapshotLockRequest
How to take the host-wide snapshot lock (issue #224).

Constants§

EX_TEMPFAIL
sysexits.h EX_TEMPFAIL: the resume can succeed when retried later.
SNAPSHOT_IMAGE_LABEL

Functions§

acquire_snapshot_lock
acquire_snapshot_lock_with
Take the snapshot lock, waiting wait_seconds for a busy one. The wait is announced once with the holder’s name.
containerd_root
df_free_bytes
Free bytes at root according to df -Pk.
format_seconds
Seconds as the wait messages print them: “600s”, “1.5s”.
preflight_snapshot
preflight_snapshot_guarded
Refuse a snapshot that could fill the disk. The writable layer is measured once (or taken from size_hint); with disk_wait_seconds free space is re-checked every poll interval until it suffices. A disk that stays short fails with EX_TEMPFAIL.
preflight_snapshot_with
snapshot_image_cleanup_snippets