PERFORCE change 82008 for review
soc-cjones
soc-cjones at FreeBSD.org
Mon Aug 15 04:18:43 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=82008
Change 82008 by soc-cjones at 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;
More information about the p4-projects
mailing list