Date: Fri, 10 Feb 2012 06:38:58 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r231345 - stable/8/sys/geom/part Message-ID: <201202100638.q1A6cwM0057943@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Fri Feb 10 06:38:57 2012 New Revision: 231345 URL: http://svn.freebsd.org/changeset/base/231345 Log: MFC r230861: The scheme code may not know about some inconsistency in the metadata. So, add an integrity check after recovery attempt. Modified: stable/8/sys/geom/part/g_part.c Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/geom/part/g_part.c ============================================================================== --- stable/8/sys/geom/part/g_part.c Fri Feb 10 06:38:03 2012 (r231344) +++ stable/8/sys/geom/part/g_part.c Fri Feb 10 06:38:57 2012 (r231345) @@ -1144,6 +1144,9 @@ g_part_ctl_recover(struct gctl_req *req, if (table->gpt_corrupt) { error = G_PART_RECOVER(table); + if (error == 0) + error = g_part_check_integrity(table, + LIST_FIRST(&gp->consumer)); if (error) { gctl_error(req, "%d recovering '%s' failed", error, gp->name);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202100638.q1A6cwM0057943>