[Ocfs2-devel] [PATCH] ocfs2: Handle quota file corruption more gracefully

Joel Becker Joel.Becker at oracle.com
Mon Aug 17 12:54:18 PDT 2009


On Mon, Aug 03, 2009 at 06:24:21PM +0200, Jan Kara wrote:
> ocfs2_read_virt_blocks() does BUG when we try to read a block from a file
> beyond its end. Since this can happen due to filesystem corruption, it
> is not really an appropriate answer. Make ocfs2_read_quota_block() check
> the condition and handle it by calling ocfs2_error() and returning EIO.
> 
> Reported-by: Tristan Ye <tristan.ye at oracle.com>
> Signed-off-by: Jan Kara <jack at suse.cz>
> ---
>  Joel, could you please merge this fix? Thanks.

This is now in the fixes branch of ocfs2.git.  That <= check is a little
confusing, because it relies on quota files always being whole blocks.

Joel

-- 

"We'd better get back, `cause it'll be dark soon,
 and they mostly come at night.  Mostly."

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