From owner-freebsd-bugs Fri Apr 3 10:20:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA12088 for freebsd-bugs-outgoing; Fri, 3 Apr 1998 10:20:05 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA12052; Fri, 3 Apr 1998 10:20:02 -0800 (PST) (envelope-from gnats) Received: from ussenterprise.ufp.org (bicknell@ussenterprise.ufp.org [209.12.7.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA11461 for ; Fri, 3 Apr 1998 10:17:05 -0800 (PST) (envelope-from bicknell@ussenterprise.ufp.org) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.8.7/8.8.7) id NAA01770; Fri, 3 Apr 1998 13:16:51 -0500 (EST) Message-Id: <199804031816.NAA01770@ussenterprise.ufp.org> Date: Fri, 3 Apr 1998 13:16:51 -0500 (EST) From: Leo Bicknell Reply-To: bicknell@ufp.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/6202: No way to detect removable media. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6202 >Category: bin >Synopsis: No way to detect removable media. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: support >Submitter-Id: current-users >Arrival-Date: Fri Apr 3 10:20:01 PST 1998 >Last-Modified: >Originator: Leo Bicknell >Organization: United Federation Of Planets >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: IDE based ZIP disk drive in a Pentium class FreeBSD system. >Description: There appears to be no standard, reliable method for determining if a removable media drive (eg, my ZIP disk, or a Floppy Drive) contains media. Attempting a mount is not good enough, as the disk may have several different types of file systems on it, or no file system at all (eg, raw tar archive). >How-To-Repeat: >Fix: Suggest a new command that tests for the presence of meida in a removable disk drive (which requires correct ioctl()'s as well), suitable for use in a shell script. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message