public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Annoying CD-rom driver error messages
@ 2001-03-05 17:27 LA Walsh
  2001-03-05 17:37 ` LA Walsh
  0 siblings, 1 reply; 16+ messages in thread
From: LA Walsh @ 2001-03-05 17:27 UTC (permalink / raw)
  To: linux-kernel

I have a music play program (freeamp) playing MP3's running.  It has the
feature in that it scans to see if a CD is in the drive and tries to look it up
in CDDB.  Well, I don't have a CD in the drive -- I have a DVD-ROM with UDF file
system on it.  Freeamp doesn't complain, but in my syslog/warnings file, every 5 seconds
I get:

Mar  5 09:17:00 xena kernel: hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
Mar  5 09:17:00 xena kernel: hdc: packet command error: error=0x50
Mar  5 09:17:00 xena kernel: ATAPI device hdc:
Mar  5 09:17:00 xena kernel:   Error: Illegal request -- (Sense key=0x05)
Mar  5 09:17:00 xena kernel:   Cannot read medium - incompatible format -- (asc=0x30, ascq=0x02)
Mar  5 09:17:00 xena kernel:   The failed "Read Subchannel" packet command was:
Mar  5 09:17:00 xena kernel:   "42 02 40 01 00 00 00 00 10 00 00 00 "
----
Needless to say, this fills up messages/warnings fairly quickly.  If there's no
DVD in the drive or if there is a CD in the drive, I don't notice this problem.

Seems like a undesirable feature for the kernel to write out 7-line error messages
everytime a program polls for a CD and fails.  Is there a way to disable this when I
have a DVD ROM disk in the drive? (vanilla 2.4.2 kernel).

Thanks...
-l


-- 
L A Walsh                        | Trust Technology, Core Linux, SGI
law@sgi.com                      | Voice: (650) 933-5338

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Annoying CD-rom driver error messages
@ 2001-03-06 17:28 David Balazic
  0 siblings, 0 replies; 16+ messages in thread
From: David Balazic @ 2001-03-06 17:28 UTC (permalink / raw)
  To: law; +Cc: linux-kernel

LA Walsh (law@sgi.com) wrote:

> Alan Cox wrote: 
> > 
> > > support to function efficiently -- perhaps that technology needs to be further developed 
> > > on Linux so app writers don't also have to be kernel experts and experts in all the 
> > > various bus and device types out there? 
> > 
> > You mean someone should write a libcdrom that handles stuff like that - quite 
> > possibly 
> 
> ---
>         More generally -- if I want to know if a DVD has been inserted and of what type
> and/or a floppy has been inserted or a removable media of type "X" or perhaps
> more generally -- not just if a 'device' has changed but a file or directory?
>         I think that is what famd is supposed to do, but apparently it does so (I'm 
> guessing from the external description) by polling and says it needs kernel support
> to be more efficient.  Famd was apparently ported to Linux from Irix where it had
> the kernel ability to be notified of changed file-space items (file-space = anything
> accessible w/a pathname).
>         Now if I can just remember where I saw this mythical port of the 'file-access
> monitoring daemon'....

This notification exists in 2.4.x ( at least the docs say so :-)
see /usr/src/linux/Documentation/dnotify.txt 

-- 
David Balazic
--------------
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2001-03-06 17:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-05 17:27 Annoying CD-rom driver error messages LA Walsh
2001-03-05 17:37 ` LA Walsh
2001-03-05 17:47   ` Alan Cox
2001-03-05 17:48     ` LA Walsh
2001-03-05 17:51       ` LA Walsh
2001-03-05 17:56         ` Jens Axboe
2001-03-05 18:13       ` Alan Cox
2001-03-05 18:16         ` LA Walsh
2001-03-06  9:29         ` God
2001-03-06 16:31           ` LA Walsh
2001-03-06 16:49             ` Alan Cox
2001-03-06 16:53               ` LA Walsh
2001-03-06 17:02                 ` Alan Cox
2001-03-06 17:04                   ` LA Walsh
2001-03-06 16:52             ` Francis Galiegue
  -- strict thread matches above, loose matches on Subject: below --
2001-03-06 17:28 David Balazic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox