From owner-freebsd-hackers Thu Jun 1 09:07:48 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA23084 for hackers-outgoing; Thu, 1 Jun 1995 09:07:48 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id JAA23044 for ; Thu, 1 Jun 1995 09:07:00 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA25731; Thu, 1 Jun 1995 18:03:02 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id SAA06289 for freebsd-hackers@freebsd.org; Thu, 1 Jun 1995 18:03:02 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id RAA10703 for freebsd-hackers@freebsd.org; Thu, 1 Jun 1995 17:39:34 +0200 From: J Wunsch Message-Id: <199506011539.RAA10703@uriah.heep.sax.de> Subject: Re: Detecting the ft driver.. To: freebsd-hackers@FreeBSD.ORG (FreeBSD hackers) Date: Thu, 1 Jun 1995 17:39:34 +0200 (MET DST) Reply-To: freebsd-hackers@FreeBSD.ORG (FreeBSD hackers) In-Reply-To: <27650.799961408@time.cdrom.com> from "Jordan K. Hubbard" at May 8, 95 12:30:08 pm Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 779 Sender: hackers-owner@FreeBSD.ORG Precedence: bulk As Jordan K. Hubbard wrote: > > I've never used a floppy tape under FreeBSD and am about to assume > that if I can open /dev/ft0, a floppy tape exists (I won't use it > directly as I know about the necessity of ft, but I just want to be > able to "probe" it this way). > > Any reasons why this won't work? I realize that this answer is late, but 'ya know why. It should work. ft.c tracks the probe status within ftopen(), and it returns either ENXIO (unit number out of bounds) or ENODEV (probe failed). The error code is bogus (Operation not supported by device, should also be ENXIO instead), but it should satisfy your needs. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)