The scheme code may not know about some inconsistency in the metadata.

So, add an integrity check after recovery attempt.

MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2012-02-01 09:28:16 +00:00
parent 363e589a37
commit 7b540236bb

View File

@ -1216,6 +1216,9 @@ g_part_ctl_recover(struct gctl_req *req, struct g_part_parms *gpp)
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);