[GFS2] Patch to detect corrupt number of dir entries in leaf and/or inode blocks
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 18 Apr 2007 08:38:42 +0000 (09:38 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 1 May 2007 08:11:30 +0000 (09:11 +0100)
commitbdd19a22f85a7039e01accd8717eaec4addd9dfd
tree6c0367cb96582f87432047ea92e3a67eaeef3635
parent7a0079d9e3fe8826475a08785f3d348c4b509774
[GFS2] Patch to detect corrupt number of dir entries in leaf and/or inode blocks

This patch detects when the number of entries in a leaf block or inode
block (in the case of stuffed directories) is corrupt and informs the
user. It prevents us from running off the end of the array thats been
allocated for the sorting in this case,

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/dir.c