From owner-freebsd-current Sat Nov 22 04:22:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA03482 for current-outgoing; Sat, 22 Nov 1997 04:22:22 -0800 (PST) (envelope-from owner-freebsd-current) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id EAA03463 for ; Sat, 22 Nov 1997 04:22:15 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id NAA02367; Sat, 22 Nov 1997 13:22:14 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.8/8.8.5) id NAA09384; Sat, 22 Nov 1997 13:13:31 +0100 (MET) Message-ID: <19971122131330.HP57544@uriah.heep.sax.de> Date: Sat, 22 Nov 1997 13:13:30 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-current@FreeBSD.ORG Cc: abial@korin.warman.org.pl (Andrzej Bialecki) Subject: Re: 'mt status' doesn't report file # ? References: 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: ; from Andrzej Bialecki on Nov 20, 1997 10:54:59 +0100 Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Andrzej Bialecki wrote: > Recently I started using mt(8) with HP SCSI DAT drive. After using this > command on Solaris I badly miss the information about file #. > > How to get this info? The tape driver needs to count the current tape file. It doesn't do this right now, and i've walked the SCSI specs up and down, it's unfortunately impossible to obtain this information directly from the device (you can only obtain the absolute block number, but that's not of great value). We accept patches iff they are sent as `diff -u' (or `diff -c') output. ;-) While you are at it, please also have a look at PR 4260... <:-) -- 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. ;-)