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

Reply via email to