]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext2,ext3,ext4: don't inherit APPEND_FL or IMMUTABLE_FL for new inodes
authorTheodore Ts'o <tytso@mit.edu>
Wed, 31 Aug 2011 15:54:51 +0000 (11:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 31 Aug 2011 15:54:51 +0000 (11:54 -0400)
commit0d3a732cc9ecb0dba5b4d0c4245c539b398af8c8
tree3928541b60787c1add5120bb34a4016529de3d6b
parentdd0d1b1027fa42b9867ebb6ea53dac34d387f3da
ext2,ext3,ext4: don't inherit APPEND_FL or IMMUTABLE_FL for new inodes

This doesn't make much sense, and it exposes a bug in the kernel where
attempts to create a new file in an append-only directory using
O_CREAT will fail (but still leave a zero-length file).  This was
discovered when xfstests #79 was generalized so it could run on all
file systems.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc:stable@kernel.org
fs/ext4/ext4.h
include/linux/ext2_fs.h
include/linux/ext3_fs.h