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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"