cvs commit: src/sbin/restore main.c restore.8 restore.c restore.h tape.c

David Malone dwmalone at FreeBSD.org
Tue Dec 5 03:18:52 PST 2006


dwmalone    2006-12-05 11:18:51 UTC

  FreeBSD src repository

  Modified files:
    sbin/restore         main.c restore.8 restore.c restore.h 
                         tape.c 
  Log:
  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
  
  Revision  Changes    Path
  1.27      +5 -2      src/sbin/restore/main.c
  1.53      +11 -5     src/sbin/restore/restore.8
  1.19      +12 -0     src/sbin/restore/restore.c
  1.11      +1 -0      src/sbin/restore/restore.h
  1.47      +75 -15    src/sbin/restore/tape.c


More information about the cvs-src mailing list