nilfs2: reject filesystem with unsupported block size
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 25 Jul 2010 13:44:53 +0000 (22:44 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 25 Jul 2010 14:29:21 +0000 (23:29 +0900)
This inserts sanity check that refuses to mount a filesystem with
unsupported block size.

Previously, kernel code of nilfs was looking only limitation of
devices though mkfs.nilfs2 limits the range of block sizes; there was
no check that prevents rec_len overflow with larger block sizes.

With this change, block sizes larger than 64KB or smaller than 1KB
will get rejected explicitly by kernel.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>

No differences found