|
2 | 2 |
|
3 | 3 | An example of a CRC-32 based error-correcting block device backed by RAM. |
4 | 4 |
|
| 5 | +``` |
| 6 | +corrupted: |
| 7 | + ' ..:::::::::::.:. .:::....:::.. :.' ''::..:':: '.:.::'.: '':. |
| 8 | + .:::::::::::::::::::.. . ::'::::::::...:::.: :'.'::: .' ..:.: :.' '. |
| 9 | + '.::::::::::::::::::::::::. ' ::::::::::' . .' ': . :'' . ': .: :. ..::: |
| 10 | + .:::::::::::::::::::::::::::. . . ::::'::::: ' . ''.:. ..:. : ::.':.'::. .... |
| 11 | + . .:::::::::::::::::::::::::::::: ... :: :'::::::' :.:....:..: . . ' '':.: : |
| 12 | + :::::::::::::::::::::::::.:::'' .. '::: ' ''' :..'::'.'''.:'. :''::. ' ' .'.. |
| 13 | + ::::::::::::'::::::::::::::''..:::::'' : .'' ::'. : .:'.'' .'' ' .. .. |
| 14 | + :::::::::::::::::::::::'' ..:::::'' . ''' :'.: :'.:. :': .':'..': :.'. |
| 15 | + :::::':::::::::::::'' ..:::::'' .' '' .::. . . :: .''::'. '.. ... |
| 16 | + ..:'::::::::::::::''' ..:::::'' ...:: '' ::..':' :' .....:'' :'. ::. |
| 17 | + . :::' :::::::::' ..::::::': ..::::::: . '' .:: :. '.: .''': :: .:.'' : |
| 18 | + :::' ':::'' ...:.::::':...:::::::::: ': :.:':: ..: .'' : ::..: .'' : |
| 19 | +::' ...::::::'' ..:::::':':::::' ' . . .:' : ''':':'.:..' :'::':.'': |
| 20 | + ....::::::::' . ::::::::::.::::::' . ::.: :' . '.:. .. .' ...'.:':.' |
| 21 | +'::::::::''' :::::::::::::::::::'' ' . :: ::' :' ':' .'...'': ' ':': |
| 22 | + '':::::::::::''' . . ' ' ::::. '.'. ::: . . '.' ' '..' |
| 23 | +``` |
| 24 | + |
| 25 | +``` |
| 26 | +corrected: |
| 27 | + ..:::::::::::... .:::....:::.. :.' '':: .:::: '.:.:::.: '':. |
| 28 | + .:::::::::::::::::::.. ::::::::::::..:::.: :'.':': .' ..:.: :.' '. |
| 29 | + .::::::::::::::::::::::::. ::::::::::' . .' ': . :'' . ': .: :. ..::: |
| 30 | + .:::::::::::::::::::::::::::. . :::::::::: ' . ''.:. ..:. : ::.':.'::. .... |
| 31 | + .:::::::::::::::::::::::::::::: ... :: :'::::::' :.:....:..: . . ' '':.: : |
| 32 | + :::::::::::::::::::::::::::::'' .. '::: ' ''' :..'::'.'''.:'..:''::. ' ' .'.. |
| 33 | + :::::::::::::::::::::::::::''..::::: ' : .'' ::'. : .::.'' .'' ' .. .. |
| 34 | + :::::::::::::::::::::::'' ..:::::'' ''' :'.: ''.:. :': :':'..': :.'. |
| 35 | + :::::::::::::::::::'' ..:::::'' . ' .::. . . :: .''::'. '.. ... |
| 36 | + ..: ::::::::::::::''' ..:::::'' ..::: '' ::..':' :' .....:'' :'. ::. |
| 37 | + ..:::' :::::::::'' ..::::::'' ..::::::: '' .:: :. '.: .''': :: .:.'' : |
| 38 | + :::' ':::'' ...::::::''...:::::::::: ': ' :':: ..: .'' : ::..: .'' : |
| 39 | +::' ...::::::'' ..:::::::::::::' . .:' : ''':':'.:..' :'::':.'': |
| 40 | + ....:::::::'' ..:::::::::::::::::' ::.: :' . '.:. .. .' ...'.:':.' |
| 41 | +'::::::::''' :::::::::::::::::::'' . :: ::' :' ':' .'...'': ' ':': |
| 42 | + '':::::::::::''' :::'. '.'. ::: . . '.' ' '..' |
| 43 | +``` |
| 44 | + |
5 | 45 | Often overlooked, the humble [CRC][crc] can already provide a simple form |
6 | 46 | of error detection and correction, capable of repairing a handful of |
7 | 47 | bit-errors. |
|
0 commit comments