From 71fda130011df5bc7c85183fce0e0add452bb9ae Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" Date: Sun, 26 Feb 2012 15:05:14 -0800 Subject: [PATCH] LU-1095 debug: Send common recovery messages to D_HA These messages are always present at recovery time, and are not understable by a sysadmin. Signed-off-by: Christopher J. Morrone Change-Id: I907b0ac49541b20699914dc4f8c5e0db3fb6bec9 Reviewed-on: http://review.whamcloud.com/2198 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Minh Diep Reviewed-by: wangdi Reviewed-by: Oleg Drokin --- lustre/include/obd_class.h | 2 +- lustre/obdfilter/filter.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lustre/include/obd_class.h b/lustre/include/obd_class.h index 77a66fb..fc2b398 100644 --- a/lustre/include/obd_class.h +++ b/lustre/include/obd_class.h @@ -1639,7 +1639,7 @@ static inline int obd_notify(struct obd_device *obd, } if (!OBP(obd, notify)) { - CERROR("obd %s has no notify handler\n", obd->obd_name); + CDEBUG(D_HA, "obd %s has no notify handler\n", obd->obd_name); RETURN(-ENOSYS); } diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 30b7156..1dfa194 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -2548,9 +2548,9 @@ static int filter_llog_connect(struct obd_export *exp, LASSERTF(ctxt != NULL, "ctxt is not null, ctxt idx %d \n", body->lgdc_ctxt_idx); - CWARN("%s: Recovery from log "LPX64"/"LPX64":%x\n", - obd->obd_name, body->lgdc_logid.lgl_oid, - body->lgdc_logid.lgl_oseq, body->lgdc_logid.lgl_ogen); + CDEBUG(D_HA, "%s: Recovery from log "LPX64"/"LPX64":%x\n", + obd->obd_name, body->lgdc_logid.lgl_oid, + body->lgdc_logid.lgl_oseq, body->lgdc_logid.lgl_ogen); cfs_spin_lock(&obd->u.filter.fo_flags_lock); obd->u.filter.fo_mds_ost_sync = 1; @@ -2693,8 +2693,8 @@ static int filter_connect_internal(struct obd_export *exp, /* Kindly make sure the SKIP_ORPHAN flag is from MDS. */ if (data->ocd_connect_flags & OBD_CONNECT_MDS) - CWARN("%s: Received MDS connection for group %u\n", - exp->exp_obd->obd_name, data->ocd_group); + CDEBUG(D_HA, "%s: Received MDS connection for group %u\n", + exp->exp_obd->obd_name, data->ocd_group); else if (data->ocd_connect_flags & OBD_CONNECT_SKIP_ORPHAN) RETURN(-EPROTO); -- 1.8.3.1