This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Calc mode basics
Darren edited this page Jun 11, 2020
·
8 revisions
Calc command with most options used
blkar calc FILE_SIZE --sbx-version VERSION --rs-data DATA --rs-parity PARITY --burst BURST
Sample run
$ blkar calc 1234
SBX container general info
========================================
SBX container version : 17
SBX container block size : 512
SBX container data size : 496
SBX block distribution
========================================
Metadata block count : 3
Data only block count : 10
Data parity block count : 2
Total block count : 15
Error correction info
========================================
RS data shard count : 10
RS parity shard count : 2
Burst error resistance level : 12
Error correction parameters interpretation
========================================
The container can tolerate 2 burst SBX block corruptions in
each super block set (12 interleaved block sets).
A block set consists of 12 blocks (6144 bytes).
A super block set consists of 144 blocks (73728 bytes).
Each burst error may be up to 12 blocks (6144 bytes) in size.
In total, 2 sets of 12 consecutive blocks (6144 bytes) may be
corrupted in each super block set.
The sets of corrupted blocks may be connected as well, so the
largest single burst error that can be tolerated in each super
block set is 24 blocks (12288 bytes) in size.
Note that the actual tolerance depends on the behaviour of
the file system.
File and container size
========================================
File size : 1234
SBX container size : 69632