From: Brian Behlendorf Date: Fri, 19 Feb 2010 19:53:55 +0000 (-0800) Subject: LU-1095 debug: CWARN to CDEBUG for mds_notify() event X-Git-Tag: 2.1.2-RC1~24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=abff03a2c27e7abe3c56c856a367118f0038aad4;p=fs%2Flustre-release.git LU-1095 debug: CWARN to CDEBUG for mds_notify() event Both of these warnings represent correct behavior the administrator does not need to know about, or more importantly do anything about. As such I am moving both of these warnings to CDEBUG(D_CONFIG). Lustre: 8099:0:(mds_lov.c:1167:mds_notify()) MDS lc1-MDT0000: add target lc1-OST0023_UUID Lustre: lc1-MDT0000: in recovery, not resetting orphans on lc1-OST0007_UUID Signed-off-by: Christopher J. Morrone Change-Id: I66a98d87e3d5de7205420c74db4f6d9bcaaf31a7 Reviewed-on: http://review.whamcloud.com/2202 Reviewed-by: Andreas Dilger Tested-by: Hudson Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 95edc07..da62283 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -1000,8 +1000,8 @@ int mds_notify(struct obd_device *obd, struct obd_device *watched, switch (ev) { /* We only handle these: */ case OBD_NOTIFY_CREATE: - CWARN("MDS %s: add target %s\n",obd->obd_name, - obd_uuid2str(&watched->u.cli.cl_target_uuid)); + CDEBUG(D_CONFIG, "%s: add target %s\n", obd->obd_name, + obd_uuid2str(&watched->u.cli.cl_target_uuid)); /* We still have to fix the lov descriptor for ost's */ LASSERT(data); rc = mds_lov_update_desc(obd, *(__u32 *)data, @@ -1019,9 +1019,10 @@ int mds_notify(struct obd_device *obd, struct obd_device *watched, } if (obd->obd_recovering) { - CWARN("MDS %s: in recovery, not resetting orphans on %s\n", - obd->obd_name, - obd_uuid2str(&watched->u.cli.cl_target_uuid)); + CDEBUG(D_CONFIG, "%s: Is in recovery, " + "not resetting orphans on %s\n", + obd->obd_name, + obd_uuid2str(&watched->u.cli.cl_target_uuid)); /* We still have to fix the lov descriptor for ost's added after the mdt in the config log. They didn't make it into mds_lov_connect. */