From root@mail.clinet.fi  Sat Jul 26 19:06:41 1997
Received: from hauki.clinet.fi (root@hauki.clinet.fi [194.100.0.1])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA29920
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Jul 1997 19:06:39 -0700 (PDT)
Received: from katiska.clinet.fi (root@install.clinet.fi [194.100.1.102])
	by hauki.clinet.fi (8.8.6/8.8.6) with ESMTP id FAA02619
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Jul 1997 05:06:35 +0300 (EET DST)
Received: (root@localhost) by katiska.clinet.fi (8.8.6/8.6.4) id FAA01490; Sun, 27 Jul 1997 05:06:38 +0300 (EEST)
Message-Id: <199707270206.FAA01490@katiska.clinet.fi>
Date: Sun, 27 Jul 1997 05:06:38 +0300 (EEST)
From: Charlie Root <root@mail.clinet.fi>
Reply-To: root@mail.clinet.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: restore gets confused when run over pipe
X-Send-Pr-Version: 3.2

>Number:         4176
>Category:       bin
>Synopsis:       restore gets confused when run over pipe "Changing volumes on pipe input"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mjacob
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 26 19:10:01 PDT 1997
>Closed-Date:    Fri Mar 1 13:32:58 PST 2002
>Last-Modified:  Fri Mar 01 13:33:36 PST 2002
>Originator:     Charlie &
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
Clinet Ltd
>Environment:

2.2-STABLE

>Description:

With the following command line:

( dump 0f - /dev/sd0s1x | ssh -c none newmachine 'cd /usr/old-katiska-usr && restore -xvf -' ) | & tee /tmp/logfile

at the end of input, when restore is supposed to start setting the modes
and owners of the files, this appears, endlessly:

abort? [yn] Changing volumes on pipe input?
abort? [yn] Changing volumes on pipe input?
abort? [yn] Changing volumes on pipe input?
abort? [yn] Changing volumes on pipe input?
abort? [yn] Changing volumes on pipe input?
abort? [yn] Changing volumes on pipe input?
abort? [yn] Changing volumes on pipe input?
abort? [yn] Changing volumes on pipe input?

All the data has already been copied at this point, and dump has reported 
dump done.  The unfortunate effect is that owners are broken.

I do not seem to be able to produce this on small input, but it happens
repeatably when copying 4G over a network.

>How-To-Repeat:

Use the above line with large enough filesystem.

>Fix:
	
I do not know, but looks like something is missing somewhere.  It could also
be a problem in ssh, maybe it drops data at the end of transfer and
restore thinks early eof to be a volume change ?

>Release-Note:
>Audit-Trail:

From: Heikki Suonsivu <hsu@mail.clinet.fi>
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: Re: bin/4176: restore gets confused when run over pipe
Date: Mon, 28 Jul 1997 06:54:24 +0300 (EEST)

    Synopsis:       restore gets confused when run over pipe "Changing volumes on pipe input"
 
    With the following command line:
 
    ( dump 0f - /dev/sd0s1x | ssh -c none newmachine 'cd /usr/old-katiska-usr && restore -xvf -' ) | & tee /tmp/logfile
 
    at the end of input, when restore is supposed to start setting the modes
    and owners of the files, this appears, endlessly:
 
    abort? [yn] Changing volumes on pipe input?
    abort? [yn] Changing volumes on pipe input?
    abort? [yn] Changing volumes on pipe input?
 ...
 
    I do not seem to be able to produce this on small input, but it happens
    repeatably when copying 4G over a network.
 
 Copying on a local disk with command
 
 dump 0f - /usr | (cd /mnt; restore xvf -)
 
 also fails, but in this case tty is connected so it keeps asking abort?
 [yn] forever.
 
 I worked around by copying the stuff with tar, but dump/restore would be a
 little bit faster.
 
 I did not try interactive mode; that might work better if you manage to get
 into restore prompt and use setmodes command.
 
 This may be very serious problem it this means that recovering large
 backups from tape is impossible.
 
 -- 
 Heikki Suonsivu, T{ysikuu 10 C 83/02210 Espoo/FINLAND, hsu@clinet.fi
 mobile +358-40-5519679 work +358-9-43542270 fax -4555276
State-Changed-From-To: open->feedback 
State-Changed-By: mike 
State-Changed-When: Sat Jul 21 23:02:24 PDT 2001 
State-Changed-Why:  

Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=4176 

From: Matthew Reimer <mreimer@vpop.net>
To: freebsd-gnats-submit@FreeBSD.org, root@mail.clinet.fi
Cc:  
Subject: Re: bin/4176: restore gets confused when run over pipe "Changing volumes 
 on pipe input"
Date: Fri, 17 Aug 2001 13:43:41 -0500

 It just happened to me doing a local dump/restore (dump 0af - /home |
 restore xf -).
 
 Matt
State-Changed-From-To: feedback->suspended 
State-Changed-By: kris 
State-Changed-When: Sat Sep 8 01:36:14 PDT 2001 
State-Changed-Why:  
Apparently still a problem.  Suspending awaiting fix and 
committer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=4176 
Responsible-Changed-From-To: freebsd-bugs->mjacob 
Responsible-Changed-By: wilko 
Responsible-Changed-When: Sat Nov 24 03:47:27 PST 2001 
Responsible-Changed-Why:  
Matt, I saw you did some work on dump/restore PRs. Do you have a clue 
to offer for this one? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=4176 
State-Changed-From-To: suspended->closed 
State-Changed-By: iedowse 
State-Changed-When: Fri Mar 1 13:32:58 PST 2002 
State-Changed-Why:  

Fixed in both -CURRENT and -STABLE. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=4176 
>Unformatted:
