diff options
author | Jan Kara <jack@suse.cz> | 2009-10-15 14:54:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-13 13:20:22 -0700 |
commit | bce8a761500acc6752aee26d9776bcaa6c812937 (patch) | |
tree | 877241131d0dbde6f8e8e518f1588a9ffcea76da /fs | |
parent | 7b2212b237085e2c16b889d2ce7f5e671e085081 (diff) |
ocfs2: Set MS_POSIXACL on remount
commit 57b09bb5e492c37c1e4273fe4e435ffd1d2ddbe0 upstream.
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>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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 14f47d2bfe0..9f55be445bd 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -701,6 +701,10 @@ unlock_osb: 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(); |