Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2006 11:18:51 +0000 (UTC)
From:      David Malone <dwmalone@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/restore main.c restore.8 restore.c restore.h tape.c
Message-ID:  <200612051118.kB5BIp3u039992@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612051118.kB5BIp3u039992>