diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2006-12-05 11:18:51 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2006-12-05 11:18:51 +0000 |
commit | 12df44b4252096a8dc10f2dfb0abcb91abacff85 (patch) | |
tree | 93515273cbec28074cbc2e6628a45e20d8f8745d /sbin/restore/restore.h | |
parent | f352d339195080f49c339692c92533746def6318 (diff) | |
download | FreeBSD-src-12df44b4252096a8dc10f2dfb0abcb91abacff85.zip FreeBSD-src-12df44b4252096a8dc10f2dfb0abcb91abacff85.tar.gz |
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
Diffstat (limited to 'sbin/restore/restore.h')
-rw-r--r-- | sbin/restore/restore.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/restore/restore.h b/sbin/restore/restore.h index 04048dc..43e4db5 100644 --- a/sbin/restore/restore.h +++ b/sbin/restore/restore.h @@ -40,6 +40,7 @@ */ extern int bflag; /* set input block size */ extern int dflag; /* print out debugging info */ +extern int Dflag; /* degraded mode - try hard to get stuff back */ extern int hflag; /* restore heirarchies */ extern int mflag; /* restore by name instead of inode number */ extern int Nflag; /* do not write the disk */ |