]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/nilfs2/the_nilfs.c
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)
commit89c0fd014d34d409a7b196667c2b9a4813b6c968
tree9fad0ab3ce77b7537ed7d8db45c40e746e26692f
parent6cda9fa2575ec0869fe77b0bdf295c0e51868cab
nilfs2: reject filesystem with unsupported block size

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>
fs/nilfs2/the_nilfs.c
include/linux/nilfs2_fs.h