Whamcloud - gitweb
ACLs must be enabled on MDS by default.
authordeen <deen>
Wed, 13 Feb 2008 19:03:27 +0000 (19:03 +0000)
committerdeen <deen>
Wed, 13 Feb 2008 19:03:27 +0000 (19:03 +0000)
b=13829
i=adilger
i=johann

lustre/ChangeLog
lustre/mdt/mdt_handler.c

index 7bae329..0e2d9b1 100644 (file)
@@ -674,6 +674,11 @@ Details    : A lot of unlink operations with concurrent I/O can lead to a
             max_rpcs_in_flight per OSC and LDLM_FL_DISCARD_DATA blocking
             callbacks are processed in priority.
 
+Severity   : normal
+Bugzilla   : 13829
+Description: enable ACLs on MDS by default
+Details    : ACLs must be enabled on MDS by default.
+
 --------------------------------------------------------------------------------
 
 2007-08-10         Cluster File Systems, Inc. <info@clusterfs.com>
index 34620b8..331f970 100644 (file)
@@ -3713,6 +3713,15 @@ static void fsoptions_to_mdt_flags(struct mdt_device *m, char *options)
 {
         char *p = options;
 
+#ifdef CONFIG_FS_POSIX_ACL
+        /* ACLs should be enabled by default (b=13829) */
+        m->mdt_opts.mo_acl = 1;
+        LCONSOLE_INFO("Enabling ACL\n");
+#else
+        m->mdt_opts.mo_acl = 0;
+        LCONSOLE_INFO("Disabling ACL\n");
+#endif
+
         if (!options)
                 return;
 
@@ -3731,16 +3740,6 @@ static void fsoptions_to_mdt_flags(struct mdt_device *m, char *options)
                            (memcmp(options, "nouser_xattr", len) == 0)) {
                         m->mdt_opts.mo_user_xattr = 0;
                         LCONSOLE_INFO("Disabling user_xattr\n");
-                } else if ((len == sizeof("acl") - 1) &&
-                           (memcmp(options, "acl", len) == 0)) {
-#ifdef CONFIG_FS_POSIX_ACL
-                        m->mdt_opts.mo_acl = 1;
-                        LCONSOLE_INFO("Enabling ACL\n");
-#else
-                        m->mdt_opts.mo_acl = 0;
-                        CWARN("ignoring unsupported acl mount option\n");
-                        LCONSOLE_INFO("Disabling ACL\n");
-#endif
                 } else if ((len == sizeof("noacl") - 1) &&
                            (memcmp(options, "noacl", len) == 0)) {
                         m->mdt_opts.mo_acl = 0;