From owner-cvs-src@FreeBSD.ORG Tue Dec 5 11:18:52 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 77A6C16A416; Tue, 5 Dec 2006 11:18:52 +0000 (UTC) (envelope-from dwmalone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86FDD43CA3; Tue, 5 Dec 2006 11:18:13 +0000 (GMT) (envelope-from dwmalone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kB5BIpLf039993; Tue, 5 Dec 2006 11:18:51 GMT (envelope-from dwmalone@repoman.freebsd.org) Received: (from dwmalone@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kB5BIp3u039992; Tue, 5 Dec 2006 11:18:51 GMT (envelope-from dwmalone) Message-Id: <200612051118.kB5BIp3u039992@repoman.freebsd.org> From: David Malone Date: Tue, 5 Dec 2006 11:18:51 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sbin/restore main.c restore.8 restore.c restore.h tape.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 11:18:52 -0000 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