From owner-freebsd-gnome@FreeBSD.ORG Fri Dec 21 18:33:17 2007 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8263016A41A for ; Fri, 21 Dec 2007 18:33:17 +0000 (UTC) (envelope-from marcus@freebsd.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id 1E6E613C458 for ; Fri, 21 Dec 2007 18:33:16 +0000 (UTC) (envelope-from marcus@freebsd.org) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost [127.0.0.1]) by av-tac-rtp.cisco.com (8.11.7p3+Sun/8.11.7) with ESMTP id lBLIXGZ07154; Fri, 21 Dec 2007 13:33:16 -0500 (EST) Received: from [172.18.254.44] (dhcp-172-18-254-44.cisco.com [172.18.254.44]) by rooster.cisco.com (8.11.7p3+Sun/8.11.7) with ESMTP id lBLIXfu13651; Fri, 21 Dec 2007 13:33:41 -0500 (EST) Message-ID: <476BC09A.8070300@freebsd.org> Date: Fri, 21 Dec 2007 08:33:14 -0500 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Jeremy Messenger References: <476A8A01.3040202@icyb.net.ua> <476A9D99.2050804@icyb.net.ua> <476BAAB0.9030303@icyb.net.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kde@freebsd.org, Andriy Gapon , freebsd-gnome@freebsd.org Subject: Re: multislot cardreader and hald X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2007 18:33:17 -0000 Jeremy Messenger wrote: > On Fri, 21 Dec 2007 05:59:44 -0600, Andriy Gapon wrote: > >> on 20/12/2007 19:03 Jeremy Messenger said the following: >>> I am no expert on hald, but if I understand it correct. If there is no >>> probe in hald then hald will never know if you put/keep your da disks in >>> and pull out. I bet other OSs do the same things. Correct me if I am >>> wrong. >> >> I now see what you are saying and this makes a lot of sense indeed. And >> I agree that FreeBSD kernel is overly verbose about such a condition - >> after all it is normal that a device with a ("field") removable media >> can have no media. I need to check how FreeBSD 7 behaves in this respect > > FreeBSD 7 beahves same. I have 7.0-BETA4 (Dec 13). If I put DVD movie in > and I will get over 16k lines in message under a minute. > > http://people.freebsd.org/~mezz/messages.txt.bz2 > > If I put a blank CD in and I only get less than ten lines in messages. I > can't wait for someone to fix FreeBSD because that over 16k lines under > a minute is very annoy. Disc media is treated differently than USB media. USB umass devices are assumed to have media. This is part of the issue with the card reader (floppy drives behave the same way). Joe > > Cheers, > Mezz > >> - I still use 6.2. >> BTW, it seems that the messages come from SCSI/CAM code, so USB code >> might not be a culprit here, it's just a "transport" for SCSI. >> >> OTOH, I wonder why the same doesn't happen for empty CD tray ? - I mean >> the constant querying (errors are still printed on access). >> This is a very un-educated guess: maybe HAL knows that acd/cd can have >> have no media and does some checks before accessing it, but maybe it >> expects that da always has media and so it tries to access it without >> any special checks ? >> I.e. one can simply open and try to read da device or one could issue >> some SCSI commands to query the actual HW. > > -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome