svn commit: r230861 - head/sys/geom/part
Andrey V. Elsukov
ae at FreeBSD.org
Wed Feb 1 09:28:17 UTC 2012
Author: ae
Date: Wed Feb 1 09:28:16 2012
New Revision: 230861
URL: http://svn.freebsd.org/changeset/base/230861
Log:
The scheme code may not know about some inconsistency in the metadata.
So, add an integrity check after recovery attempt.
MFC after: 1 week
Modified:
head/sys/geom/part/g_part.c
Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c Wed Feb 1 03:49:56 2012 (r230860)
+++ head/sys/geom/part/g_part.c Wed Feb 1 09:28:16 2012 (r230861)
@@ -1216,6 +1216,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-head
mailing list