Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2005 04:18:42 GMT
From:      soc-cjones <soc-cjones@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 82008 for review
Message-ID:  <200508150418.j7F4IgQe010459@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=82008

Change 82008 by soc-cjones@soc-cjones_ishtar on 2005/08/15 04:18:09

	Add a little bit of deubgging goodness.

Affected files ...

.. //depot/projects/soc2005/gvinum/src/sys/geom/vinum/geom_vinum_state.c#2 edit

Differences ...

==== //depot/projects/soc2005/gvinum/src/sys/geom/vinum/geom_vinum_state.c#2 (text+ko) ====

@@ -269,13 +269,20 @@
 	
 	/* If our drive isn't up we cannot be up either. */
 	if (d->state != GV_DRIVE_UP)
+{
+		printf("gv_update_sd_state: drive '%s' not up, forcing sd '%s' down\n", d->name, s->name);
 		s->state = GV_SD_DOWN;
+}
 	/* If this subdisk was just created, we assume it is good.*/
 	else if (s->flags & GV_SD_NEWBORN) {
+		printf("gv_update_sd_state: sd '%s' newborn\n", s->name);
 		s->state = GV_SD_UP;
 		s->flags &= ~GV_SD_NEWBORN;
 	} else if (s->state != GV_SD_UP)
+{
+		printf("gv_update_sd_state: drive '%s' not up, forcing sd '%s' stale\n", d->name, s->name);
 		s->state = GV_SD_STALE;
+}
 	else
 		s->state = GV_SD_UP;
 	


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508150418.j7F4IgQe010459>