From owner-freebsd-hackers Mon May 12 22:50:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA01961 for hackers-outgoing; Mon, 12 May 1997 22:50:46 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id WAA01956 for ; Mon, 12 May 1997 22:50:43 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id HAA16808 for hackers@FreeBSD.ORG; Tue, 13 May 1997 07:50:41 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id HAA09342; Tue, 13 May 1997 07:28:29 +0200 (MET DST) Message-ID: <19970513072829.EP06728@uriah.heep.sax.de> Date: Tue, 13 May 1997 07:28:29 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@FreeBSD.ORG Subject: Re: GNU is not tar References: <33780356.486F@fps.biblos.unal.edu.co> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <33780356.486F@fps.biblos.unal.edu.co>; from Pedro F. Giffuni on May 12, 1997 22:59:50 -0700 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Pedro F. Giffuni wrote: > mt(2?) didn't fix the blocksize either, but I'm not sure of that format: It's mt(1), and no, most today's tapes are variable blocksize anyway, you can't use mt to enforce their blocksize. `variable' means they record a block in exactly the same size as you pass it down to the write(2) command (well, up to a maximum which is currently still 64 KB in FreeBSD, to cope with the limitations of some older SCSI controllers). That's why your application needs to know the blocksize, not the tape driver. Variable-length recorded tapes need to be written with at least a similarly (or longer) sized read(2) syscall, or an error will occur. (The st(4) driver will also syslog the size mismatch.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)