ocfs2: Set MS_POSIXACL on remount
authorJan Kara <jack@suse.cz>
Thu, 15 Oct 2009 12:54:05 +0000 (14:54 +0200)
committerJoel Becker <joel.becker@oracle.com>
Thu, 29 Oct 2009 06:06:37 +0000 (23:06 -0700)
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>
fs/ocfs2/super.c

index a5116b9..45d654c 100644 (file)
@@ -702,6 +702,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();