]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/omfs/omfs_fs.h
omfs: sanity check cluster size
authorBob Copeland <me@bobcopeland.com>
Tue, 6 Jul 2010 15:16:46 +0000 (11:16 -0400)
committerBob Copeland <me@bobcopeland.com>
Sat, 10 Jul 2010 18:38:11 +0000 (14:38 -0400)
commit8800a044c71a128633cf3febaf4780531a991334
treeb736cdc086d86f27e1b52efa96f2a3f15fe1d443
parent9442e54f433eff9b6fbd0836611df4c1919df370
omfs: sanity check cluster size

A corrupt filesystem could have a bad cluster size; this could result in
the filesystem allocating too much space for files if too large, or
getting stuck in omfs_allocate_block if too small.  The proper range is
1-8 blocks.

Reported-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
fs/omfs/inode.c
fs/omfs/omfs_fs.h