svn commit: r231344 - stable/9/sys/geom/part

Andrey V. Elsukov ae at FreeBSD.org
Fri Feb 10 06:38:04 UTC 2012


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


More information about the svn-src-stable-9 mailing list