[Ocfs2-tools-devel] [PATCH 0/3] Add extent list check for discontig block group.

Joel Becker Joel.Becker at oracle.com
Wed Jul 21 18:18:20 PDT 2010


On Wed, Jul 21, 2010 at 03:24:45PM +0800, Tao Ma wrote:
> 6. if one extent record looks broken while all the others look
>    sane and complete, remove it(can we ever meet with it?).

	Do you mean that you have 5 records, but the first four add up
to cpg, so you drop the 5th?

> There is still one issue I can't make sure. What about
> e_leaf_clusters looks like sane. See the below example.
> e_cpos	e_leaf_clusters	e_blkno
> 0	12		10000
> 10	10		20000
> 
> Currently I drop the group because that is not easy to tell which
> record needs fix. We may have a very complicated solution(say check
> the global bitmap to see whether the intersection is allocated and
> read the real block to see whether it contains valid data) etc, but
> it is too much complicated and depends on other parts which should
> be consistent and right. I think it doesn't worth. Joel, do you have
> any idea that we can solve this easier and quickly or we can leave
> it as-is?

	Throw it out.  It's corrupt, and we can't easily detect what
happened.

Joel

-- 

"Can any of you seriously say the Bill of Rights could get through
 Congress today?  It wouldn't even get out of committee."
	- F. Lee Bailey

Joel Becker
Consulting Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list