Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Feb 2011 20:27:21 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r218239 - projects/graid/head/sys/geom/raid
Message-ID:  <201102032027.p13KRLAW057485@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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