Skip to main content

Module resume

Module resume 

Source
Expand description

Resume only verified blocks of a pinned content manifest (SVC-01.14).

A pin holds one ContentManifest. Verified bits are a u8 bitmap aligned to MAX_RANGES (8). An unverified block is not transferred (QdnfError::Incomplete). A different digest cannot resume into an existing pin (QdnfError::Conflict). Container generation is not a QSync root. Packages remain open.

Structs§

ResumeTable
Four pinned manifests, each with an 8-bit verified bitmap.

Constants§

MAX_PINNED
Maximum concurrently pinned manifests.

Functions§

container_generation_is_qsync_root
Container generation is not an authorized QSync root (SVC-01.14).
mark_verified
Mark range block_index verified on pin. Only indices in 0..range_count of the pinned manifest may be marked.
pin
Pin manifest. Same digest is idempotent (same pin id). Fifth distinct digest is QdnfError::Capacity.
resume_block
Resume range block_index of pin. Ok only when that range is verified. Unverified is QdnfError::Incomplete, not transferred.
resume_digest
A different digest cannot resume into this pin.
resume_unverified_is_allowed
Unverified blocks are never treated as transferred.