1
0
Fork 0
alistair23-linux/fs/minix
Erik van der Kouwe 0ab7620a0c 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: Erik van der Kouwe <vdkouwe@cs.vu.nl>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2010-05-27 22:06:22 -04:00
..
Kconfig fs/Kconfig: move minix out 2009-01-22 13:15:58 +03:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bitmap.c minix: replace inode uid,gid,mode init with helper 2010-05-21 18:31:24 -04:00
dir.c rename the generic fsync implementations 2010-05-27 22:06:06 -04:00
file.c rename the generic fsync implementations 2010-05-27 22:06:06 -04:00
inode.c pass writeback_control to ->write_inode 2010-03-05 13:25:52 -05:00
itree_common.c [PATCH] Minix V3 support 2007-02-12 09:48:31 -08:00
itree_v1.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
itree_v2.c fs/minix: bugfix, number of indirect block ptrs per block depends on block size 2010-05-27 22:06:22 -04:00
minix.h minix: replace inode uid,gid,mode init with helper 2010-05-21 18:31:24 -04:00
namei.c minix: replace inode uid,gid,mode init with helper 2010-05-21 18:31:24 -04:00