]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/ext4/ioctl.c
ext4: copy i_flags to inode flags on write
authorJan Kara <jack@suse.cz>
Wed, 18 Jul 2007 13:24:20 +0000 (09:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 Jul 2007 13:24:20 +0000 (09:24 -0400)
commitff9ddf7e847c4dc533f119efb6c77a6e57ab6397
treefff8ab26370c0e466d96fb99bf3dc566b909a104
parent1e2462f93e011f63fd0f1fedd2c05338ca6b31c2
ext4: copy i_flags to inode flags on write

Propagate flags such as S_APPEND, S_IMMUTABLE, etc. from i_flags into
ext4-specific i_flags.  Quota code changes these flags on quota files
(to make it harder for sysadmin to screw himself) and these changes were
not correctly propagated into the filesystem.

(This is a forward port patch from ext3)

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c
fs/ext4/ioctl.c
include/linux/ext4_fs.h