[Ocfs2-devel] 40TB RAID and OCFS2 woes (inode64, JDB2, huge partition support, Volume might try to write to blocks beyond what jbd can address in 32 bits)

Joel Becker Joel.Becker at oracle.com
Thu Dec 31 12:08:36 PST 2009


On Fri, Jan 01, 2010 at 04:36:02AM +0900, Robert Smith wrote:
> Oh, I found it at line #2163 of fs/ocfs2/super.c.
> 
> I imagine that something as simple as the following would work, but perhaps I'll wait for your feedback.
> 
> 
> /*
>         if (ocfs2_clusters_to_blocks(osb->sb, le32_to_cpu(di->i_clusters) - 1)
>             > (u32)~0UL) {
>                 mlog(ML_ERROR, "Volume might try to write to blocks beyond "
>                      "what jbd can address in 32 bits.\n");
>                 status = -EINVAL;
>                 goto bail;
>         }
> */

	That should work.  The real solution will check based on the
journal flags.  Be warned, there be tygers in here.

Joel

-- 

"But all my words come back to me
 In shades of mediocrity.
 Like emptiness in harmony
 I need someone to comfort me."

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



More information about the Ocfs2-devel mailing list