PERFORCE change 121717 for review
Ulf Lilleengen
lulf at FreeBSD.org
Fri Jun 15 20:42:57 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=121717
Change 121717 by lulf at lulf_carrot on 2007/06/15 20:42:36
- Add returning correct value for "initializing"-state
- Make it possible to set REVIVING and INITIALIZING states.
Affected files ...
.. //depot/projects/soc2007/lulf/gvinum_fixup/sys/geom/vinum/geom_vinum_share.c#2 edit
.. //depot/projects/soc2007/lulf/gvinum_fixup/sys/geom/vinum/geom_vinum_state.c#11 edit
Differences ...
==== //depot/projects/soc2007/lulf/gvinum_fixup/sys/geom/vinum/geom_vinum_share.c#2 (text+ko) ====
@@ -236,6 +236,8 @@
return (GV_SD_UP);
else if (!strcmp(buf, "reviving"))
return (GV_SD_REVIVING);
+ else if (!strcmp(buf, "initializing"))
+ return (GV_SD_INITIALIZING);
else if (!strcmp(buf, "stale"))
return (GV_SD_STALE);
else
==== //depot/projects/soc2007/lulf/gvinum_fixup/sys/geom/vinum/geom_vinum_state.c#11 (text+ko) ====
@@ -202,6 +202,16 @@
return (GV_ERR_ISATTACHED);
break;
+ case GV_SD_REVIVING:
+ case GV_SD_INITIALIZING:
+ /*
+ * Only do this if we're forced, since it usually is done
+ * internally, and then we do use the force flag.
+ */
+ if (!flags & GV_SETSTATE_FORCE)
+ return (GV_ERR_SETSTATE);
+ break;
+
case GV_SD_UP:
/* We can't bring the subdisk up if our drive is dead. */
d = s->drive_sc;
More information about the p4-projects
mailing list