Sort mode basics - darrenldl/blockyarchive GitHub Wiki
Typical command invocation
blkar sort CONTAINER
The sorted container is stored as CONTAINER.sorted
by default.
blkar does not support in-place sorting as it severely complicates the sorting logic when block set interleaving pattern is taken into account.
Sort mode is mainly designed for
-
Fixing the ordering of SBX blocks so repair mode can process the container
-
Adjusting the burst error resistance level of an existing container
- By default blkar guesses the original burst error resistance level and uses that for the output container, but you can specify a new one using
--burst
option
- By default blkar guesses the original burst error resistance level and uses that for the output container, but you can specify a new one using
Sort mode addtionally supports multi-pass output. By specifying --multi-pass
or --multi-pass-no-skip
, truncation on output container is disabled. This means the output container is not reset to zero size when writing, and blkar can accumulate progress over multiple runs.
This functionality is inspired by lzip's capability of merging damaged copies of archives to form a good one.
See Container sorting scenarios and demos for more information on merging.