Whamcloud - gitweb
LU-1095 debug: CWARN to CDEBUG for mds_notify() event
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 Feb 2010 19:53:55 +0000 (11:53 -0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 30 Apr 2012 11:11:21 +0000 (07:11 -0400)
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 <morrone2@llnl.gov>
Change-Id: I66a98d87e3d5de7205420c74db4f6d9bcaaf31a7
Reviewed-on: http://review.whamcloud.com/2202
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mds/mds_lov.c

index 8c2899b..a7b891a 100644 (file)
@@ -1004,8 +1004,8 @@ int mds_notify(struct obd_device *obd, struct obd_device *watched,
         switch (ev) {
         /* We only handle these: */
         case OBD_NOTIFY_CREATE:
         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,
                 /* We still have to fix the lov descriptor for ost's */
                 LASSERT(data);
                 rc = mds_lov_update_desc(obd, *(__u32 *)data,
@@ -1023,9 +1023,10 @@ int mds_notify(struct obd_device *obd, struct obd_device *watched,
         }
 
         if (obd->obd_recovering) {
         }
 
         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. */
                 /* 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. */