[Ocfs2-tools-devel] [PATCH] extras/check_metaecc: A tool to check metaecc of a metadata block

Sunil Mushran sunil.mushran at oracle.com
Wed May 19 11:23:27 PDT 2010


On 05/19/2010 11:23 AM, Coly Li wrote:
>
> - if crc32 matched in fast path,
>     Block xxxx, CRC32: xxxxx   ECC: xxxxx
>     Calculated, CRC32: xxxxx
>     Check OK.
>
> - if ecc matched,
>     Block xxxx, CRC32: xxxxx   ECC: xxxxx
>     Calculated, CRC32: xxxxx   ECC: xxxxx
>     Check OK.
>
> - if dismatched,
>     Block xxxx, CRC32: xxxxx   ECC: xxxxx
>     Calculated, CRC32: xxxxx   ECC: xxxxx
>     Check Failed.
>    

How about...

    Block xxxx    CRC32: xxxxx   ECC: xxxxx
    Pass          CRC32: xxxxx   ECC: xxxxx

    Block xxxx    CRC32: xxxxx   ECC: xxxxx
    ** Fail       CRC32: xxxxx   ECC: xxxxx

The outputs should be aligned so that it is easy to read. Also, I don't
see the value of fastpath.




More information about the Ocfs2-tools-devel mailing list