Expand description
Serialize snapshots separately from the execution store and bound disk usage.
Structs§
- Preflight
Options - Options of the disk preflight (issue #224).
- Snapshot
Failure - A refused snapshot;
exit_codeisEX_TEMPFAILwhen retrying can help. - Snapshot
Lock Request - 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_secondsfor a busy one. The wait is announced once with the holder’s name. - containerd_
root - df_
free_ bytes - Free bytes at
rootaccording todf -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); withdisk_wait_secondsfree space is re-checked every poll interval until it suffices. A disk that stays short fails withEX_TEMPFAIL. - preflight_
snapshot_ with - snapshot_
image_ cleanup_ snippets