summaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorErik van der Kouwe <vdkouwe@cs.vu.nl>2010-05-26 12:03:23 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2010-05-27 22:06:22 -0400
commit0ab7620a0cefe6982b914a830a41f65ecccd74bd (patch)
tree1fbdea741219bb9d7a2beafe99084f9c2089af75 /fs/proc
parent1b061d9247f71cd15edc4c4c4600191a903642c0 (diff)
downloadblackbird-op-linux-0ab7620a0cefe6982b914a830a41f65ecccd74bd.tar.gz
blackbird-op-linux-0ab7620a0cefe6982b914a830a41f65ecccd74bd.zip
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>
Diffstat (limited to 'fs/proc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud