From owner-freebsd-questions@FreeBSD.ORG Tue Mar 30 12:27:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39AED16A4CE for ; Tue, 30 Mar 2004 12:27:14 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4DF643D41 for ; Tue, 30 Mar 2004 12:27:13 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i2UKRC2D007091; Tue, 30 Mar 2004 14:27:12 -0600 (CST) (envelope-from dan) Date: Tue, 30 Mar 2004 14:27:12 -0600 From: Dan Nelson To: Jesse Guardiani Message-ID: <20040330202711.GF19463@dan.emsphone.com> References: <20040330153932.GE19463@dan.emsphone.com> <200403301300.16163.jesse@wingnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403301300.16163.jesse@wingnet.net> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: tcopy tape to tape WAY too slow X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 20:27:14 -0000 In the last episode (Mar 30), Jesse Guardiani said: > On Tuesday 30 March 2004 10:39, you wrote: > > If you have multiple files or unknown blocksizes, the cptp command > > from the MAG package at http://www.cs.vu.nl/~dick/mag.html will > > preserve filemark and blocksize info through pipes, so you could do > > a cptp | cptp pipe. > > That looks promising. Do you have special build instructions for this > package under FreeBSD 4.x? > > I'm getting the following error on 'gmake' or 'make': > > gcc -ansi -DUNIX -O -s -c tperr.c > tperr.c:18: initializer element is not constant > *** Error code 1 Bug in the program (stderr cannot be used to initialize static variables). Replace line 18 with #define tperr stderr and it'll build. It looks like you may also want to edit tploc.h, line 49, and replace those two "8"'s with "%d"'s. Then something like "cptp -m 0 of=- | cptp -m 1 if=-" should copy from rmt0 to rmt1 with a little bit of pipe buffering inbetween. Adding "team" or "buffer" (both in ports/misc) inbetween will add even more buffering. -- Dan Nelson dnelson@allantgroup.com