[Ocfs2-devel] [PATCH 02/18] ocfs2: Add the on-disk structures for metadata checksums.

Tao Ma tao.ma at oracle.com
Tue Dec 9 17:32:45 PST 2008



Joel Becker wrote:
> Define struct ocfs2_block_check, an 8-byte structure containing a 32bit
> crc32_le and a 16bit hamming code ecc.  This will be used for metadata
> checksums.  Add the structure to free spaces in the various metadata
> structures.
> 
> Add the OCFS2_FEATURE_INCOMPAT_META_ECC bit.
> 
> Signed-off-by: Joel Becker <joel.becker at oracle.com>
> ---
>  fs/ocfs2/ocfs2_fs.h |   55 ++++++++++++++++++++++++++++++++++++++++++++++----
>  1 files changed, 50 insertions(+), 5 deletions(-)
> 
> diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h
> index 4ae3984..4e20f50 100644
> --- a/fs/ocfs2/ocfs2_fs.h
> +++ b/fs/ocfs2/ocfs2_fs.h
> @@ -148,6 +148,9 @@
>  /* Support for extended attributes */
>  #define OCFS2_FEATURE_INCOMPAT_XATTR		0x0200
>  
> +/* Metadata checksum and error correction */
> +#define OCFS2_FEATURE_INCOMPAT_META_ECC		0x0800
> +
Is there any reason why we don't use 0x0400?

Regards,
Tao



More information about the Ocfs2-devel mailing list