Date: Thu, 20 Dec 2007 12:13:29 -0500 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Jeremy Messenger <mezz7@cox.net> Cc: kde@freebsd.org, Andriy Gapon <avg@icyb.net.ua>, freebsd-gnome@freebsd.org Subject: Re: multislot cardreader and hald Message-ID: <1198170809.71043.2.camel@shumai.marcuscom.com> In-Reply-To: <op.t3m8cgek9aq2h7@mezz.mezzweb.com> References: <476A8A01.3040202@icyb.net.ua> <op.t3m7k1qp9aq2h7@mezz.mezzweb.com> <476A9D99.2050804@icyb.net.ua> <op.t3m8cgek9aq2h7@mezz.mezzweb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-hVQf/ZDobLKxv2mRASqT Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2007-12-20 at 11:03 -0600, Jeremy Messenger wrote: > On Thu, 20 Dec 2007 10:51:37 -0600, Andriy Gapon <avg@icyb.net.ua> wrote: >=20 > > on 20/12/2007 18:47 Jeremy Messenger said the following: > >> On Thu, 20 Dec 2007 09:28:01 -0600, Andriy Gapon <avg@icyb.net.ua> =20 > >> wrote: > >> > >>> When I connect a USB multislot cardreader (CF, SD, etc) with only one > >>> card inserted to my computer my /var/log/messages gets spammed with t= he > >>> endless reports like the following: > >>> kernel: Opened disk da1 -> 6 > >>> kernel: (da2:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0= =20 > >>> 0 0 > >>> kernel: (da2:umass-sim0:0:0:2): CAM Status: SCSI Status Error > >>> kernel: (da2:umass-sim0:0:0:2): SCSI Status: Check Condition > >>> kernel: (da2:umass-sim0:0:0:2): NOT READY csi:0,aa,55,41 asc:3a,0 > >>> kernel: (da2:umass-sim0:0:0:2): Medium not present field replaceable > >>> unit: 1 > >>> kernel: (da2:umass-sim0:0:0:2): Unretryable error > >>> kernel: Opened disk da2 -> 6 > >>> kernel: (da3:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0= =20 > >>> 0 0 > >>> kernel: (da3:umass-sim0:0:0:3): CAM Status: SCSI Status Error > >>> kernel: (da3:umass-sim0:0:0:3): SCSI Status: Check Condition > >>> kernel: (da3:umass-sim0:0:0:3): NOT READY csi:0,aa,55,41 asc:3a,0 > >>> kernel: (da3:umass-sim0:0:0:3): Medium not present field replaceable > >>> unit: 1 > >>> kernel: (da3:umass-sim0:0:0:3): Unretryable error > >>> kernel: Opened disk da3 -> 6 > >>> > >>> These reports are for the empty slots. > >>> If I disable hald these messages get printed only a few times, but wi= th > >>> hald this happens endlessly, apparently every 2 seconds. > >>> > >>> I am curious if this is hald itself or KDE acting through it. > >> > >> It's FreeBSD since you still get w/out hald, report to freebsd-usb@. > > > > It's true that messages come from the kernel but, as I said, without > > hald I get only a few of them and that's it. With hald running these > > messages are produced every 2 seconds until the card-reader is > > disconnected. So hald must be doing something silly here, like never > > giving up on probing those da disks without any media behind them. >=20 > I am no expert on hald, but if I understand it correct. If there is no =20 > probe in hald then hald will never know if you put/keep your da disks in = =20 > and pull out. I bet other OSs do the same things. Correct me if I am wron= g. This is a FreeBSD problem, but it's not a hal problem per se. I think the GEOM/SCSI people are working to hide these kind of messages, but in the meantime, you either need to live with them, stop using hal, or tell hal to stop probing that device. The way hal works is that it periodically probes devices to determine if there is media changes. In this manner, hal can auto-mount volumes. If you do not want to auto-mount media from this device, then search the archives for ways to manipulate the .fdi files to stop hal from probing this device. Again, the ideal solution would be for the kernel people to hide these messages behind verbose booting. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-hVQf/ZDobLKxv2mRASqT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHaqK4b2iPiv4Uz4cRAjlrAKCbpX71oCASCYrXp8iPOM8h11Lc9QCfRwFN 6JY/8WlEleUOU/xOWOjwmWs= =yr/s -----END PGP SIGNATURE----- --=-hVQf/ZDobLKxv2mRASqT--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1198170809.71043.2.camel>