From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 26 00:42:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 494EC16A406 for ; Tue, 26 Feb 2008 00:42:36 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id DB46A13C46A for ; Tue, 26 Feb 2008 00:42:35 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m1Q0gRLu079303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Feb 2008 11:12:27 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Tue, 26 Feb 2008 11:12:17 +1030 User-Agent: KMail/1.9.7 References: <20080225154455.4822e72a@bhuda.mired.org> <47C33384.6040701@dial.pipex.com> In-Reply-To: <47C33384.6040701@dial.pipex.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2814839.qx05Vb5oxd"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200802261112.25449.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Alex Zbyslaw Subject: Re: emulate an end-of-media X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2008 00:42:36 -0000 --nextPart2814839.qx05Vb5oxd Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tue, 26 Feb 2008, Alex Zbyslaw wrote: > Are there not (at least) two more alternatives? > > 1) Add gzip/zlib support to dump. That would seem easier than > new devices. Then -a would just work. > > 2) Instead of using cdrecord directly you have a wrapper which > "emulates" the dump -a behaviour by writing 650/700Mb of data using > cdrecord then prompting for the next cd. You don't close the pipe, > and dump should just block waiting for your "device" to be ready.=20 > Might have trouble accessing /dev/tty - not sure. The general solution would be nicer, then you could compress & encrypt. Although I'm not sure it's so simple as adding SIGPIPE because at the=20 end of the media the compressor will be holding some data that it has=20 read but will never make it out to the media..=20 The only way I could think to solve this was to add an argument that=20 specified a pipeline to stick after the data is generated but before=20 it's fed to the output, although even then it gets a bit gnarly..=20 =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2814839.qx05Vb5oxd Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHw2Bx5ZPcIHs/zowRAt2pAJkBECSy5V18ViClTVmTLGsOFh4CMgCfYM12 mC3Z80jz3UweyfhAVSncFUA= =kbOz -----END PGP SIGNATURE----- --nextPart2814839.qx05Vb5oxd--