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

Alexander Motin mav at FreeBSD.org
Sat Jan 29 09:17:36 UTC 2011


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);


More information about the svn-src-projects mailing list