Skip to content
Commit 0ab7620a authored by Erik van der Kouwe's avatar Erik van der Kouwe Committed by Al Viro
Browse files

fs/minix: bugfix, number of indirect block ptrs per block depends on block size



The MINIX filesystem driver used a constant number of indirect block
pointers in an indirect block. This worked only for filesystems with 1kb
block, while the MINIX default block size is now 4kb. As a consequence,
large files were read incorrectly on such filesystems and writing a
large file would cause the filesystem to become corrupted. This patch
computes the number of indirect block pointers based on the block size,
making the driver work for each block size.

I would like to thank Feiran Zheng ('Fam') for pointing out the cause
of the corruption.

Signed-off-by: default avatarErik van der Kouwe <vdkouwe@cs.vu.nl>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1b061d92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment