Subject: dump through a pipe to restore sometimes gets a write error....
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
Date: 10/18/2003 17:02:30
dump through a pipe to restore sometimes gets a write error on the pipe
(or is it actually a SIGPIPE?) even though everything is copied.

This is the second time this has happened.  Is it perhaps because the
padding for the final block is not read by restore?

# dump -0 -a -k 64 -b 64 -r 512 -f - /dev/rsd1a | restore -r -f -  
  DUMP: Found /dev/rsd1a on /X11R6.6 in /etc/fstab
  DUMP: Date of this level 0 dump: Sat Oct 18 16:53:07 2003
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rsd1a (/X11R6.6) to standard output
  DUMP: Label: none
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 274883 tape blocks.
  DUMP: Volume 1 started at: Sat Oct 18 16:53:11 2003
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: 86.01% done, finished in 0:00
  DUMP: 274956 tape blocks
  DUMP: Volume 1 completed at: Sat Oct 18 16:58:58 2003
  DUMP: Volume 1 took 0:05:47
  DUMP: Volume 1 transfer rate: 792 KB/s
  DUMP: Date of this level 0 dump: Sat Oct 18 16:53:07 2003
  DUMP: Date this dump completed:  Sat Oct 18 16:58:58 2003
  DUMP: Average transfer rate: 792 KB/s
  DUMP: Broken pipe
  DUMP: The ENTIRE dump is aborted.


-- 
						Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>