diff options
author | Jan Kara <jack@suse.cz> | 2009-10-15 08:54:05 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-10-29 02:06:37 -0400 |
commit | 57b09bb5e492c37c1e4273fe4e435ffd1d2ddbe0 (patch) | |
tree | 6b14d5f30d05fbda217e3cb5982e766b15064a3a /fs | |
parent | 5297aad80cd3a3e62116e0a0b29116ccd8ae397d (diff) |
ocfs2: Set MS_POSIXACL on remount
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index a5116b9b7e70..45d654cb77ef 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -702,6 +702,10 @@ unlock_osb: | |||
702 | 702 | ||
703 | if (!ocfs2_is_hard_readonly(osb)) | 703 | if (!ocfs2_is_hard_readonly(osb)) |
704 | ocfs2_set_journal_params(osb); | 704 | ocfs2_set_journal_params(osb); |
705 | |||
706 | sb->s_flags = (sb->s_flags & ~MS_POSIXACL) | | ||
707 | ((osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL) ? | ||
708 | MS_POSIXACL : 0); | ||
705 | } | 709 | } |
706 | out: | 710 | out: |
707 | unlock_kernel(); | 711 | unlock_kernel(); |