Whamcloud - gitweb
LU-188 Reduce startup messages.
authoryangsheng <ys@whamcloud.com>
Fri, 6 May 2011 03:54:09 +0000 (11:54 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 10 May 2011 00:01:49 +0000 (17:01 -0700)
commit f257c3021c7470445673bc930c4884c5df9b9429
Date:   Mon Jan 24 15:17:35 2011 +0100

b=17275 make lustre client less verbose at startup time for Cray

i=johann

Signed-off-by: YangSheng <ys@whamcloud.com>
Change-Id: I78a5196f56ff147075676d2fdcdc6d9978437d72
Reviewed-on: http://review.whamcloud.com/406
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/super25.c
lustre/lov/lov_obd.c
lustre/obdclass/class_obd.c
lustre/obdclass/obd_config.c

index 358b769..5f27094 100644 (file)
@@ -113,11 +113,13 @@ static int __init init_lustre_lite(void)
         struct timeval tv;
         lnet_process_id_t lnet_id;
 
+#ifndef CRAY_XT3
         /* print an address of _any_ initialized kernel symbol from this
          * module, to allow debugging with gdb that doesn't support data
          * symbols from modules.*/
         CDEBUG(D_CONSOLE, "Lustre client module (%p).\n",
                &lustre_super_operations);
+#endif
 
         rc = ll_init_inodecache();
         if (rc)
index 61fdb7b..f2f9584 100644 (file)
@@ -179,7 +179,7 @@ int lov_connect_obd(struct obd_device *obd, __u32 index, int activate,
 
 
         if (imp->imp_invalid) {
-                CERROR("not connecting OSC %s; administratively "
+                CDEBUG(D_CONFIG, "not connecting OSC %s; administratively "
                        "disabled\n", obd_uuid2str(tgt_uuid));
                 RETURN(0);
         }
index 6c1dd8a..c1ada33 100644 (file)
@@ -515,9 +515,13 @@ int init_obdclass(void)
                 CFS_INIT_LIST_HEAD(&capa_list[i]);
 #endif
 
+#ifdef CRAY_XT3
+        LCONSOLE_INFO("Lustre: Build Version: "BUILD_VERSION"\n");
+#else
         LCONSOLE_INFO("OBD class driver, http://www.lustre.org/\n");
         LCONSOLE_INFO("        Lustre Version: "LUSTRE_VERSION_STRING"\n");
         LCONSOLE_INFO("        Build Version: "BUILD_VERSION"\n");
+#endif
 
         cfs_spin_lock_init(&obd_types_lock);
         cfs_waitq_init(&obd_race_waitq);
index 6af0a5c..6b493c7 100644 (file)
@@ -1118,7 +1118,7 @@ int class_process_proc_param(char *prefix, struct lprocfs_vars *lvars,
                                var->name, rc);
                         rc = 0;
                 } else {
-                        LCONSOLE_INFO("%s.%.*s: set parameter %.*s=%s\n",
+                        CDEBUG(D_CONFIG, "%s.%.*s: set parameter %.*s=%s\n",
                                       lustre_cfg_string(lcfg, 0),
                                       (int)strlen(prefix) - 1, prefix,
                                       (int)(sval - key - 1), key, sval);