]> 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>
Mon, 22 Aug 2011 18:48:53 +0000 (14:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Aug 2011 18:48:53 +0000 (14:48 -0400)
commitf65fe3148e226007b2e17e29dd962d91646ab0a7
treea3766dc505a0e4819d437af22933e8fff5fd8d10
parent8592de01c236846b62d6b1d24896c8a9ef8f6881
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