]> git.baikalelectronics.ru Git - kernel.git/commit
bfs: check that filesystem fits on the blockdevice
authorEric Sesterhenn <snakebyte@gmx.de>
Tue, 6 Jan 2009 22:43:13 +0000 (14:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:31 +0000 (15:59 -0800)
commit1ebdeaa93d1c3fff8ba4e9d06600eb63d58941a8
tree9e5fc77230deaa459ea4c12fdc3241ad991117e7
parent49a4502e073bc82d494c3ab329b65aadc38e61d3
bfs: check that filesystem fits on the blockdevice

Since all sanity checks rely on the validity of s_start which gets only
checked to be smaller than s_end, we should also check if s_end is sane.
Now we also try to retrieve the last block of the filesystem, which is
computed by s_end.  If this fails, something is bogus.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Acked-by: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/bfs/inode.c