]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:43 +0000 (15:35 -0400)
commit3c6e1a9ba230c1f234857945cf0715156a68b80f
tree386f277374f88ba3bdc7fd44d452e3f736334be1
parenta0d7bcec0d32fa1f410648d2f8349397a353e905
ext2,ext3,ext4: don't inherit APPEND_FL or IMMUTABLE_FL for new inodes

commit 1cd9f0976aa4606db8d6e3dc3edd0aca8019372a upstream.

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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/ext4/ext4.h
include/linux/ext2_fs.h
include/linux/ext3_fs.h