From: yangsheng Date: Fri, 6 May 2011 03:54:09 +0000 (+0800) Subject: LU-188 Reduce startup messages. X-Git-Tag: 2.0.60.0~3 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=f4831ab428de8468d8ef25ddb72d3e34b69040b0 LU-188 Reduce startup messages. 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 Change-Id: I78a5196f56ff147075676d2fdcdc6d9978437d72 Reviewed-on: http://review.whamcloud.com/406 Tested-by: Hudson Reviewed-by: Fan Yong Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/llite/super25.c b/lustre/llite/super25.c index 358b769..5f27094 100644 --- a/lustre/llite/super25.c +++ b/lustre/llite/super25.c @@ -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) diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index 61fdb7b..f2f9584 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -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); } diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index 6c1dd8a..c1ada33 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -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); diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index 6af0a5c..6b493c7 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -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);