From nobody@FreeBSD.org  Wed Aug 27 11:04:30 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3BEF21065672
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Aug 2008 11:04:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 221378FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Aug 2008 11:04:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m7RB4TA4023984
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Aug 2008 11:04:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m7RB4Tdv023983;
	Wed, 27 Aug 2008 11:04:29 GMT
	(envelope-from nobody)
Message-Id: <200808271104.m7RB4Tdv023983@www.freebsd.org>
Date: Wed, 27 Aug 2008 11:04:29 GMT
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dump(8) ok, but restore(8) via -P and SSH fails
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         126882
>Category:       bin
>Synopsis:       dump(8) ok, but restore(8) via -P and SSH fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 27 11:10:03 UTC 2008
>Closed-Date:    Fri Aug 29 11:17:54 UTC 2008
>Last-Modified:  Fri Aug 29 11:17:54 UTC 2008
>Originator:     Matthias Apitz
>Release:        FreeBSD 7.0-RELEASE
>Organization:
>Environment:
FreeBSD rebelion.Sisis.de 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Some days ago I have done a dump of my /usr file system with:

# dump -0auL -P "ssh guru@albatros 'gzip -c > dumpsRebelion/usr.dmp.gz'"  /usr

the DUMP ended fine with no errors; today I try to reload certain
directory with:

$ restore -xv -P "ssh guru@albatros 'gzip -dc dumpsRebelion/usr.dmp.gz'" ./home/guru/myThings/Espanol/diario2008

and it says:

Verify tape and initialize maps
Tape block size is 16
Header with wrong dumpdate.
Dump   date: Mon Aug 25 09:56:58 2008
Dumped from: the epoch
Level 0 dump of /usr on rebelion.Sisis.de:/dev/ad4s1f
Label: none
Extract directories from tape
Initialize symbol table.
Make node ./home
Make node ./home/guru
Make node ./home/guru/myThings
Make node ./home/guru/myThings/Espanol
Make node ./home/guru/myThings/Espanol/diario2008
Make node ./home/guru/myThings/Espanol/diario2008/enanitos
Make node ./home/guru/myThings/Espanol/diario2008/imagenes
Make node ./home/guru/myThings/Espanol/diario2008/CVS
Extract requested files
You have not read any tapes yet.
If you are extracting just a few files, start with the last volume
and work towards the first; restore can quickly skip tapes that
have no further files to extract. Otherwise, begin with volume 1.
Specify next volume #: 1
partial block read: 16128 should be 16384
partial block read: 256 should be 16384
partial block read: 16128 should be 16384
unknown tape header type 6697331
abort? [yn]

the DUMP itself seems to be OK because this works:

ssh guru@albatros 'cat dumpsRebelion/usr.dmp.gz' | gzip -dc | restore -xv -f - ./home/guru/myThings/Espanol/diario2008

the problem seems to be -P related

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Jaakko Heinonen <jh@saunalahti.fi>
To: Matthias Apitz <guru@unixarea.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: misc/126882: dump(8) ok, but restore(8) via -P and SSH failes
Date: Wed, 27 Aug 2008 14:45:54 +0300

 On 2008-08-27, Matthias Apitz wrote:
 > $ restore -xv -P "ssh guru@albatros 'gzip -dc dumpsRebelion/usr.dmp.gz'" ./home/guru/myThings/Espanol/diario2008
 > 
 > partial block read: 16128 should be 16384
 > partial block read: 256 should be 16384
 > partial block read: 16128 should be 16384
 > unknown tape header type 6697331
 > abort? [yn]
 
 AFAIK restore(8) -P switch has been broken since it's introduction (in
 r128175). Please see the PR bin/121502 and the patches submitted to it.
 Those patches should fix the problem you are seeing.
 
 -- 
 Jaakko
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Fri Aug 29 09:57:50 UTC 2008 
State-Changed-Why:  
To submitter: it looks like this may well be a duplicate of bin/121502. 
Can you please try the patch found there and confirm if it fixes things 
for you? 


Responsible-Changed-From-To: freebsd-bugs->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Fri Aug 29 09:57:50 UTC 2008 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126882 
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Fri Aug 29 11:08:56 UTC 2008 
State-Changed-Why:  
Close, submitter confirms that this is a duplicate of bin/121502 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126882 
>Unformatted:
