From owner-cvs-all Sun Feb 17 18:29:51 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 526FE37B400; Sun, 17 Feb 2002 18:29:47 -0800 (PST) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1I2TlC58194; Sun, 17 Feb 2002 18:29:47 -0800 (PST) (envelope-from iedowse) Message-Id: <200202180229.g1I2TlC58194@freefall.freebsd.org> From: Ian Dowse Date: Sun, 17 Feb 2002 18:29:47 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/restore tape.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2002/02/17 18:29:47 PST Modified files: sbin/restore tape.c Log: Use a more robust scheme for determining how many blocks to skip after an EOT-terminated volume. We keep track of the current record number, and synchronise it with the c_tapea field each time we read a header. Avoid the use of c_firstrec because some bugs in dump can cause it to be set incorrectly. Move the initialisation of some variables to avoid compiler warnings. Revision Changes Path 1.29 +18 -15 src/sbin/restore/tape.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message