PERFORCE change 121702 for review
Ulf Lilleengen
lulf at FreeBSD.org
Fri Jun 15 16:57:05 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=121702
Change 121702 by lulf at lulf_carrot on 2007/06/15 16:56:29
- Fix a bug where I used wrong text-to-number conversion on some states.
Affected files ...
.. //depot/projects/soc2007/lulf/gvinum_fixup/sys/geom/vinum/geom_vinum_state.c#10 edit
Differences ...
==== //depot/projects/soc2007/lulf/gvinum_fixup/sys/geom/vinum/geom_vinum_state.c#10 (text+ko) ====
@@ -97,7 +97,7 @@
/* XXX: Should try to avoid malloc. */
newstatep = g_malloc(sizeof(int), M_WAITOK | M_ZERO);
- *newstatep = gv_sdstatei(state);
+ *newstatep = gv_plexstatei(state);
flagp = g_malloc(sizeof(int), M_WAITOK | M_ZERO);
*flagp = f;
gv_post_event(sc, GV_EVENT_SET_PLEX_STATE, p, newstatep, flagp);
@@ -127,7 +127,7 @@
/* XXX: Should try to avoid malloc. */
newstatep = g_malloc(sizeof(int), M_WAITOK | M_ZERO);
- *newstatep = gv_sdstatei(state);
+ *newstatep = gv_drivestatei(state);
flagp = g_malloc(sizeof(int), M_WAITOK | M_ZERO);
*flagp = f;
gv_post_event(sc, GV_EVENT_SET_DRIVE_STATE, d, newstatep,
More information about the p4-projects
mailing list