From owner-freebsd-current@FreeBSD.ORG Thu Oct 15 14:06:43 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D08FE106566B for ; Thu, 15 Oct 2009 14:06:43 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 3C0EC8FC12 for ; Thu, 15 Oct 2009 14:06:42 +0000 (UTC) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id n9FE6c3A042189 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 15 Oct 2009 16:06:39 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by cicely5.cicely.de (8.14.2/8.14.2) with ESMTP id n9FE6ZDf030195 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Oct 2009 16:06:35 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id n9FE6Z9x064590; Thu, 15 Oct 2009 16:06:35 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id n9FE6Xcv064589; Thu, 15 Oct 2009 16:06:33 +0200 (CEST) (envelope-from ticso) Date: Thu, 15 Oct 2009 16:06:33 +0200 From: Bernd Walter To: Hans Petter Selasky Message-ID: <20091015140633.GD62588@cicely7.cicely.de> References: <200910141945.09311.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200910141945.09311.hselasky@c2i.net> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: Warren Block , freebsd-current@freebsd.org Subject: Re: Why does hal think my USB devices are fixed? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2009 14:06:43 -0000 On Wed, Oct 14, 2009 at 07:45:08PM +0200, Hans Petter Selasky wrote: > On Wednesday 14 October 2009 19:04:07 Warren Block wrote: > > Fixed as opposed to removable. hal used to see these USB > > devices--USB memory sticks, memory cards in a reader--as removable > > devices. Which they are. > > > > Same computer, same config that used to automount these devices as > > removable, but now FreeBSD 8.0-RC1 and hal says they are fixed devices: > > > > org.freedesktop.hal.storage.mount-fixed no <-- (action, result). > > > > Is this be due to the USB system? > > Hi Warren, > > The fixed/removable information is transferred to the PC using a SCSI INQUIRY > command. What the device reports or what the CAM layer reports to HAL is not > up to the USB stack. This is a different thing. SCSI inquiry tells about removeable media. Just some examples: USB flash sticks are removeable drives with unremoveable media. USB harddisks are removeable drives with unremoveable media. USB card readers are removeable drives with removeable media. (Plain old) Floppy drives are unremoveable drives with removeable media. SCSI harddisks are unremoveable drives with unremoveable media. But even this is not correct anymore. SATA and SCSI devices can be external and powered off at any time. In the result this means that every drive might be removeable today. > The most significant bit of second byte of the INQUIRY response decides if the > medium is removable or not. > > See: ustorage_fs_inquiry() in src/sys/dev/usb/storage/ustorage_fs.c > > --HPS > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.