]> Pileus Git - ~andy/linux/commit
xfs: validate log feature fields correctly
authorDave Chinner <david@fromorbit.com>
Mon, 6 Apr 2009 16:39:27 +0000 (18:39 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 6 Apr 2009 16:39:27 +0000 (18:39 +0200)
commita6cb767e24b1dbedfcfa8077eab0aa2eab224038
treefb564a9323f40f70d22e6d41c2d4709922291944
parent1aacc064e029f0017384e463121b98f06d3a2cc3
xfs: validate log feature fields correctly

If the large log sector size feature bit is set in the
superblock by accident (say disk corruption), the then
fields that are now considered valid are not checked on
production kernels. The checks are present as ASSERT
statements so cause a panic on a debug kernel.

Change this so that the fields are validity checked if
the feature bit is set and abort the log mount if the
fields do not contain valid values.

Reported-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_log.c