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:
parent
363e589a37
commit
7b540236bb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user