[PATCH] Copy i_flags to ocfs2 inode flags on write
Propagate flags such as S_APPEND, S_IMMUTABLE, etc. from i_flags into ocfs2-specific ip_attr. Hence, when someone sets these flags via a different interface than ioctl, they are stored correctly. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
This commit is contained in:
@@ -31,6 +31,7 @@ static int ocfs2_get_inode_attr(struct inode *inode, unsigned *flags)
|
||||
mlog_errno(status);
|
||||
return status;
|
||||
}
|
||||
ocfs2_get_inode_flags(OCFS2_I(inode));
|
||||
*flags = OCFS2_I(inode)->ip_attr;
|
||||
ocfs2_meta_unlock(inode, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user