Re: [ILUG] device change

From: Padraig Brady (padraig at domain antefacto.com)
Date: Thu 13 Jun 2002 - 11:52:22 IST


Nils Olofsson wrote:
> hi,
> Has anyone come accross this with a laptop/desktop with redhat 7.3
> detected device change on hda(22,1)
> this is logged by the kernel and when i dmesg
> all i get is :
> detected device change on hda(22,1)
> detected device change on hda(22,1)
> detected device change on hda(22,1)
> detected device change on hda(22,1)
> detected device change on hda(22,1)
> and so on, the hd disk is always active and slow down my laptop,
> is there any solution to the problem or what could cause this problem.

Bloody annoying isn't it. It's a kernel bug
(which has been there for years) that I sent
a patch in for (should be in 2.4.19 ?).

Basically what's happening is that magicdev
checks every so often for new CDs, which because
of the kernel bug, has the side effect of
printing these erroneous messages, and filling the buffer.

So fixes (any of):
1. don't use magicdev
2. comment out the printk() in /usr/src/linux/fs/block_dev.c
3. apply my patch which removes the buggy IOCTL altogether

Padraig.



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:14 GMT