From e870166fb8ba9e3e64cf93783c12da46d64b973a Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 29 Sep 2009 12:28:13 +0000 Subject: [PATCH] - disable few llog-related messages while llog isn't ready (too many noise in the logs) --- lustre/lov/lov_log.c | 6 +++--- lustre/lvfs/fsfilt.c | 2 +- lustre/mds/mds_log.c | 2 +- lustre/mdt/mdt_handler.c | 2 +- lustre/obdclass/llog_obd.c | 6 +++--- lustre/ptlrpc/sec_config.c | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lustre/lov/lov_log.c b/lustre/lov/lov_log.c index 7346f25..e25e9d9 100644 --- a/lustre/lov/lov_log.c +++ b/lustre/lov/lov_log.c @@ -120,8 +120,8 @@ static int lov_llog_origin_add(struct llog_ctxt *ctxt, struct llog_rec_hdr *rec, numcookies - cookies); llog_ctxt_put(cctxt); if (rc < 0) { - CERROR("Can't add llog (rc = %d) for stripe %i\n", - rc, cookies); + /*CERROR("Can't add llog (rc = %d) for stripe %i\n", + rc, cookies);*/ memset(logcookies + cookies, 0, sizeof(struct llog_cookie)); rc = 1; /* skip this cookie */ @@ -158,7 +158,7 @@ static int lov_llog_origin_connect(struct llog_ctxt *ctxt, llog_ctxt_put(cctxt); if (rc) { - CERROR("error osc_llog_connect tgt %d (%d)\n", i, rc); + //CERROR("error osc_llog_connect tgt %d (%d)\n", i, rc); if (!err) err = rc; } diff --git a/lustre/lvfs/fsfilt.c b/lustre/lvfs/fsfilt.c index cb95e85..09d4b44 100644 --- a/lustre/lvfs/fsfilt.c +++ b/lustre/lvfs/fsfilt.c @@ -122,7 +122,7 @@ struct fsfilt_operations *fsfilt_get_ops(const char *type) } if (rc) { - CERROR("Can't find %s interface\n", name); + //CERROR("Can't find %s interface\n", name); RETURN(ERR_PTR(rc < 0 ? rc : -rc)); /* unlock fsfilt_types list */ } diff --git a/lustre/mds/mds_log.c b/lustre/mds/mds_log.c index 0108623..c6dd22c 100644 --- a/lustre/mds/mds_log.c +++ b/lustre/mds/mds_log.c @@ -179,7 +179,7 @@ int mds_changelog_llog_init(struct obd_device *obd, struct obd_device *tgt) tgt, 1, NULL, CHANGELOG_CATALOG, &changelog_orig_logops); if (rc) { - CERROR("changelog llog setup failed %d\n", rc); + //CERROR("changelog llog setup failed %d\n", rc); RETURN(rc); } diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 85a05e8..2b22913 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -4277,7 +4277,7 @@ static int mdt_obd_llog_setup(struct obd_device *obd, lmi->lmi_dt->dd_ops->dt_conf_get(NULL, lmi->lmi_dt, &dt_param); mnt = dt_param.ddp_mnt; if (mnt == NULL) { - CERROR("no llog support on this device\n"); + //CERROR("no llog support on this device\n"); return 0; } LASSERT(mnt); diff --git a/lustre/obdclass/llog_obd.c b/lustre/obdclass/llog_obd.c index c56eb75..229acef 100644 --- a/lustre/obdclass/llog_obd.c +++ b/lustre/obdclass/llog_obd.c @@ -213,8 +213,8 @@ int llog_setup_named(struct obd_device *obd, struct obd_llog_group *olg, } if (rc) { - CERROR("obd %s ctxt %d lop_setup=%p failed %d\n", - obd->obd_name, index, op->lop_setup, rc); + /*CERROR("obd %s ctxt %d lop_setup=%p failed %d\n", + obd->obd_name, index, op->lop_setup, rc);*/ llog_ctxt_put(ctxt); } else { CDEBUG(D_CONFIG, "obd %s ctxt %d is initialized\n", @@ -283,7 +283,7 @@ int llog_cancel(struct llog_ctxt *ctxt, struct lov_stripe_md *lsm, ENTRY; if (!ctxt) { - CERROR("No ctxt\n"); + //CERROR("No ctxt\n"); RETURN(-ENODEV); } diff --git a/lustre/ptlrpc/sec_config.c b/lustre/ptlrpc/sec_config.c index e9fe66f..ec7ca71 100644 --- a/lustre/ptlrpc/sec_config.c +++ b/lustre/ptlrpc/sec_config.c @@ -1025,7 +1025,7 @@ int sptlrpc_target_local_copy_conf(struct obd_device *obd, ctxt = llog_get_context(obd, LLOG_CONFIG_ORIG_CTXT); if (ctxt == NULL) { - CERROR("missing llog context\n"); + //CERROR("missing llog context\n"); RETURN(-EINVAL); } -- 1.8.3.1