darrenldl / blockyarchive

Blocky archive - multithreaded archiver offering bit rot protection and sector level recoverability
MIT License
95 stars 4 forks source link

Add --hash and --hash-only flags to check mode #195

Closed darrenldl closed 5 years ago

darrenldl commented 5 years ago

--hash invokes hashing procedure after checking individual blocks regardless of results from individual block checking.

--hash-only invokes hashing procedure and skips checking individual blocks.

Hashing procedure for both cases assumes the container to be well ordered, similar to decode mode with stdout as output, and only runs if the reference block contains a hash field.