Whamcloud - gitweb
LU-3828 mdt: hsm tunable can be set permanently
[fs/lustre-release.git] / lustre / mdt / mdt_handler.c
index dc960e5..5de7d78 100644 (file)
@@ -5166,9 +5166,16 @@ static int mdt_process_config(const struct lu_env *env,
                lprocfs_mdt_init_vars(&lvars);
                rc = class_process_proc_param(PARAM_MDT, lvars.obd_vars,
                                              cfg, obd);
-               if (rc > 0 || rc == -ENOSYS)
-                       /* we don't understand; pass it on */
-                       rc = next->ld_ops->ldo_process_config(env, next, cfg);
+               if (rc > 0 || rc == -ENOSYS) {
+                       /* is it an HSM var ? */
+                       rc = class_process_proc_param(PARAM_HSM,
+                                                     hsm_cdt_get_proc_vars(),
+                                                     cfg, obd);
+                       if (rc > 0 || rc == -ENOSYS)
+                               /* we don't understand; pass it on */
+                               rc = next->ld_ops->ldo_process_config(env, next,
+                                                                     cfg);
+               }
 
                if (old_cfg != NULL)
                        lustre_cfg_free(cfg);