]> 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)
commit06736d046311d8cd209ae87e70673cb7bf4f016e
treed1831108234fccb44edff738cd875b77ada7b8f6
parentaef22686c17c524565df2cab9293d33430f982e3
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