diff options
author | Jan Kara <jack@suse.cz> | 2007-07-18 15:24:20 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2007-07-18 15:24:20 +0200 |
commit | ff9ddf7e847c4dc533f119efb6c77a6e57ab6397 (patch) | |
tree | fff8ab26370c0e466d96fb99bf3dc566b909a104 /fs/ext4/ioctl.c | |
parent | ext4: Enable extents by default (diff) | |
download | linux-ff9ddf7e847c4dc533f119efb6c77a6e57ab6397.tar.xz linux-ff9ddf7e847c4dc533f119efb6c77a6e57ab6397.zip |
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>
Diffstat (limited to 'fs/ext4/ioctl.c')
-rw-r--r-- | fs/ext4/ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c index 7b4aa4543c83..9737432f079d 100644 --- a/fs/ext4/ioctl.c +++ b/fs/ext4/ioctl.c @@ -28,6 +28,7 @@ int ext4_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, switch (cmd) { case EXT4_IOC_GETFLAGS: + ext4_get_inode_flags(ei); flags = ei->i_flags & EXT4_FL_USER_VISIBLE; return put_user(flags, (int __user *) arg); case EXT4_IOC_SETFLAGS: { |