Date: Tue, 28 Jun 2011 02:01:16 GMT From: SATO Jun <sato.june@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/158363: partial restore problem in /sbin/restore Message-ID: <201106280201.p5S21GOr022361@red.freebsd.org> Resent-Message-ID: <201106280210.p5S2AB8Y003366@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 158363
>Category: bin
>Synopsis: partial restore problem in /sbin/restore
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jun 28 02:10:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: SATO Jun
>Release: 7.1
>Organization:
>Environment:
FreeBSD 7.1-STABLE #0: Mon Jan 26 17:43:26 J\st 2009 /usr/src/sys/amd64/compile/GENERIC amd64
>Description:
Partial restoring using -i or -x option from multi volume backups is failed with 'tape is not dump tape'.
>How-To-Repeat:
Dump multi volume and restore with -i or -x option.
>Fix:
--- tape.c~ 2011-06-27 16:30:02.000000000 +0900
+++ tape.c 2011-06-28 10:08:36.000000000 +0900
@@ -425,7 +425,7 @@
gethdr:
volno = newvol;
setdumpnum();
- FLUSHTAPEBUF();
+ FLUSHTAPEBUF(); numtrec = 0;
if (gethead(&tmpbuf) == FAIL) {
dprintf(stdout, "header read failed at %ld blocks\n", blksread);
fprintf(stderr, "tape is not dump tape\n");
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106280201.p5S21GOr022361>
