Skip to content

Commit

Permalink
ocfs2: Set MS_POSIXACL on remount
Browse files Browse the repository at this point in the history
We have to set MS_POSIXACL on remount as well. Otherwise VFS
would not know we started supporting ACLs after remount and
thus ACLs would not work.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
  • Loading branch information
Jan Kara authored and Joel Becker committed Oct 29, 2009
1 parent 5297aad commit 57b09bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/ocfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,10 @@ static int ocfs2_remount(struct super_block *sb, int *flags, char *data)

if (!ocfs2_is_hard_readonly(osb))
ocfs2_set_journal_params(osb);

sb->s_flags = (sb->s_flags & ~MS_POSIXACL) |
((osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL) ?
MS_POSIXACL : 0);
}
out:
unlock_kernel();
Expand Down

0 comments on commit 57b09bb

Please sign in to comment.