Author: ae Date: Fri Feb 10 06:38:03 2012 New Revision: 231344 URL: http://svn.freebsd.org/changeset/base/231344
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/9/sys/geom/part/g_part.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/geom/part/g_part.c ============================================================================== --- stable/9/sys/geom/part/g_part.c Fri Feb 10 06:35:14 2012 (r231343) +++ stable/9/sys/geom/part/g_part.c Fri Feb 10 06:38:03 2012 (r231344) @@ -1215,6 +1215,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); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"