]> git.hungrycats.org Git - linux/commit
Only truncate file types that can be truncated on minixfs.
authorLinus Torvalds <torvalds@home.osdl.org>
Mon, 3 Nov 2003 01:44:08 +0000 (17:44 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 3 Nov 2003 01:44:08 +0000 (17:44 -0800)
commit51c9a1e662b08bdf53ffd0afa0d490595d96bac8
tree758f20fe60d13bd47e5a4dce02f2b782f4e9babe
parent664dcb0c2f80379792c36ee6eec7e95a0678bdda
Only truncate file types that can be truncated on minixfs.

Only regular files, directories and symbolic links can have any
blocks allocated to them - other types of files have different
metadata in their inodes and should not get to the truncation
paths. Enforce this in fs/minix/inode.c.

Without this, deleting a block or character device can cause
minix filesystem corruption. Noted by Konstantin Boldyshev.
fs/minix/inode.c