to whether the file is clean or not.
sh_off_t end;
oid_t oid;
u32 chk;
+ int errors = 0;
+ int fatal_errors = 0;
fd = open(obuck_name, O_RDWR);
if (fd < 0)
pos = end;
continue;
}
+ errors++;
end = pos;
do
{
if (pos - end > 0x10000000)
{
printf("*** skipped for too long, giving up\n");
+ fatal_errors++;
goto finish;
}
end += OBUCK_ALIGN;
}
finish:
close(fd);
+ if (!fix && errors || fatal_errors)
+ exit(1);
}
int