freebsd-nq/sbin/restore
David Malone cbc8bb98ef Add a "-D" flag to restore which puts it into "degraded" mode. This
makes restore less efficient, but it makes a bigger effore to read
corrupted dumps. Specifiacally, when in degreded mode:

	1) Restore shifts the input by 1 byte if it sees a problem,
	rather than one tape block.
	2) It doesn't assume the inodes are stored in ascending order.
	3) It turns some panics into warning printfs.

We also verify some fields more carefully than before.

There's probably more a degreded mode could do, but this seems to
help a lot.

Approved by:	imp, iedowse, mckusick
MFC after:	3 weeks
2006-12-05 11:18:51 +00:00
..
dirs.c Remove debug from last commit 2005-04-03 16:35:58 +00:00
extern.h
interactive.c Interpret correctly the glob(3) return value. 2005-07-21 16:12:35 +00:00
main.c Add a "-D" flag to restore which puts it into "degraded" mode. This 2006-12-05 11:18:51 +00:00
Makefile Revert bogus += -g change. I needed it to debug the problem. 2005-03-25 17:30:20 +00:00
restore.8 Add a "-D" flag to restore which puts it into "degraded" mode. This 2006-12-05 11:18:51 +00:00
restore.c Add a "-D" flag to restore which puts it into "degraded" mode. This 2006-12-05 11:18:51 +00:00
restore.h Add a "-D" flag to restore which puts it into "degraded" mode. This 2006-12-05 11:18:51 +00:00
symtab.c
tape.c Add a "-D" flag to restore which puts it into "degraded" mode. This 2006-12-05 11:18:51 +00:00
utilities.c