Date: Thu, 10 Feb 2011 07:56:55 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r218512 - projects/graid/head/sys/geom/raid Message-ID: <201102100756.p1A7utcf014147@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Thu Feb 10 07:56:55 2011 New Revision: 218512 URL: http://svn.freebsd.org/changeset/base/218512 Log: Explicitly write metadata on array startup. It deprecates all missing disks and guaranties that any later arrival will be handled as STALE with potential rebuild. 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 Thu Feb 10 07:38:38 2011 (r218511) +++ projects/graid/head/sys/geom/raid/md_intel.c Thu Feb 10 07:56:55 2011 (r218512) @@ -954,6 +954,8 @@ g_raid_md_intel_start(struct g_raid_soft } while (disk != NULL); mdi->mdio_started = 1; + G_RAID_DEBUG1(0, sc, "Array started."); + g_raid_md_write_intel(md, NULL, NULL, NULL); /* Pickup any STALE/SPARE disks to refill array if needed. */ g_raid_md_intel_refill(sc); @@ -1541,6 +1543,7 @@ makedisk: } /* Write metadata based on created entities. */ + G_RAID_DEBUG1(0, sc, "Array started."); g_raid_md_write_intel(md, NULL, NULL, NULL); /* Pickup any STALE/SPARE disks to refill array if needed. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102100756.p1A7utcf014147>