• Ryusuke Konishi's avatar
    nilfs2: reject filesystem with unsupported block size · 89c0fd01
    Ryusuke Konishi authored
    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: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
    89c0fd01
the_nilfs.c 23.9 KB