Skip to contentSkip to conversation

Journal Checksums

PATCH In review Girish Shilamkar 1 participant 2 messages May 30, 2007

lore
Share & tools
lore
#0 lore raw

cover Journal Checksums

Hi,
The following patch set adds journal checksumming support for linux
kernel and e2fsprogs.

Two new flags have been added i.e JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT and JBD2_FEATURE_COMPAT_CHECKSUM.

_CHECKSUM flag indicates that the commit block contains the checksum for the blocks described the the descriptor blocks.
Due to checksums, writing of the commit record no longer needs to be synchronous, this behavior is controlled using _ASYNC_COMMIT flag. Older kernels/e2fsck should not be able to recover the journal with _ASYNC_COMMIT hence it is made incompat.
The commit header has been extended to hold the checksum along with the type of the checksum.

For recovery in pass scan checksums are verified to ensure the sanity and completeness(in case of _ASYNC_COMMIT) of every transaction.

Any suggestions/comments are welcome.

Thanks & Regards,
Girish.

#1 lore raw

Hi,
I forgot mention, this patch is spinoff of patch originally written by
Vijayan Prabhakaran.

Thanks & Regards.
Girish

Quoted 26 lines · Girish Shilamkar

Hi,
The following patch set adds journal checksumming support for linux
kernel and e2fsprogs.

Two new flags have been added i.e JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT and JBD2_FEATURE_COMPAT_CHECKSUM.

_CHECKSUM flag indicates that the commit block contains the checksum for the blocks described the the descriptor blocks.
Due to checksums, writing of the commit record no longer needs to be synchronous, this behavior is controlled using _ASYNC_COMMIT flag. Older kernels/e2fsck should not be able to recover the journal with _ASYNC_COMMIT hence it is made incompat.
The commit header has been extended to hold the checksum along with the type of the checksum.

For recovery in pass scan checksums are verified to ensure the sanity and completeness(in case of _ASYNC_COMMIT) of every transaction.

Any suggestions/comments are welcome.

Thanks & Regards,
Girish.