Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jan 2011 09:17:36 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r218062 - projects/graid/head/sys/geom/raid
Message-ID:  <201101290917.p0T9Hatq025154@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sat Jan 29 09:17:36 2011
New Revision: 218062
URL: http://svn.freebsd.org/changeset/base/218062

Log:
  When dirty flag set in metadata, report all disks as STALE instead of
  ACTIVE. In such case transformation module should make own decisions and
  shift some of them to ACTIVE and rebuild the others.

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

Modified: projects/graid/head/sys/geom/raid/md_intel.c
==============================================================================
--- projects/graid/head/sys/geom/raid/md_intel.c	Sat Jan 29 08:52:06 2011	(r218061)
+++ projects/graid/head/sys/geom/raid/md_intel.c	Sat Jan 29 09:17:36 2011	(r218062)
@@ -635,6 +635,9 @@ nofit:
 			if (mmap0->disk_idx[sd->sd_pos] & INTEL_DI_RBLD) {
 				g_raid_change_subdisk_state(sd,
 				    G_RAID_SUBDISK_S_NEW);
+			} else if (mvol->dirty) {
+				g_raid_change_subdisk_state(sd,
+				    G_RAID_SUBDISK_S_STALE);
 			} else {
 				g_raid_change_subdisk_state(sd,
 				    G_RAID_SUBDISK_S_ACTIVE);



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