From owner-freebsd-current@FreeBSD.ORG Wed Oct 14 17:44:15 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 DA162106566B for ; Wed, 14 Oct 2009 17:44:15 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.tele2.se [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id 6A0408FC1C for ; Wed, 14 Oct 2009 17:44:15 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=iN285EWJes0A:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=zIoiMrX23M3wnObPpqAA:9 a=4LmpdXKJXd4fB1a86v7RZc1tQJYA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 576787078; Wed, 14 Oct 2009 19:44:13 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Wed, 14 Oct 2009 19:45:08 +0200 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: In-Reply-To: X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910141945.09311.hselasky@c2i.net> Cc: Warren Block 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 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2009 17:44:15 -0000 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. 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