svn commit: r218239 - projects/graid/head/sys/geom/raid

Alexander Motin mav at FreeBSD.org
Thu Feb 3 20:27:21 UTC 2011


Author: mav
Date: Thu Feb  3 20:27:20 2011
New Revision: 218239
URL: http://svn.freebsd.org/changeset/base/218239

Log:
  Do not update subdisk state from NONE and ACTIVE to ACTIVE. First is wrong.
  last is pointless.

Modified:
  projects/graid/head/sys/geom/raid/tr_raid0.c

Modified: projects/graid/head/sys/geom/raid/tr_raid0.c
==============================================================================
--- projects/graid/head/sys/geom/raid/tr_raid0.c	Thu Feb  3 20:26:26 2011	(r218238)
+++ projects/graid/head/sys/geom/raid/tr_raid0.c	Thu Feb  3 20:27:20 2011	(r218239)
@@ -140,7 +140,9 @@ g_raid_tr_event_raid0(struct g_raid_tr_o
 	sc = vol->v_softc;
 	if (event == G_RAID_SUBDISK_E_NEW) {
 		state = sd->sd_state;
-		if (state != G_RAID_SUBDISK_S_FAILED)
+		if (state != G_RAID_SUBDISK_S_NONE &&
+		    state != G_RAID_SUBDISK_S_FAILED &&
+		    state != G_RAID_SUBDISK_S_ACTIVE)
 			g_raid_change_subdisk_state(sd, G_RAID_SUBDISK_S_ACTIVE);
 		if (state != sd->sd_state &&
 		    !trs->trso_starting && !trs->trso_stopped)


More information about the svn-src-projects mailing list