From: Jan Kara Date: Mon, 3 Aug 2009 16:24:21 +0000 (+0200) Subject: ocfs2: Handle quota file corruption more gracefully X-Git-Tag: v2.6.31-rc8~39^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada508274b8698a33cb0e5bd037db0f9dc781795;p=pandora-kernel.git ocfs2: Handle quota file corruption more gracefully 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. [ Modified to print ip_blkno in the error - Joel ] Reported-by: Tristan Ye Signed-off-by: Jan Kara Signed-off-by: Joel Becker --- Reading git-diff-tree failed