[Ocfs2-devel] [PATCH 2/2] ocfs2: Fix incorrect checksum validation error

Mark Fasheh mfasheh at suse.com
Fri Aug 13 16:31:28 PDT 2010


On Thu, Aug 12, 2010 at 04:24:26PM -0700, Sunil Mushran wrote:
> For local mounts, ocfs2_read_locked_inode() calls ocfs2_read_blocks_sync() to
> read the inode off the disk. The latter first checks to see if that block is
> cached in the journal, and, if so, returns that block. That is ok.
> 
> But ocfs2_read_locked_inode() goes wrong when it tries to validate the checksum
> of such blocks. Blocks that are cached in the journal may not have had their
> checksum computed as yet. We should not validate the checksums of such blocks.
> 
> Fixes ossbz#1282
> http://oss.oracle.com/bugzilla/show_bug.cgi?id=1282
> 
> Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>

Good catch.

Acked-by: Mark Fasheh <mfasheh at suse.com>
	--Mark

--
Mark Fasheh



More information about the Ocfs2-devel mailing list