Re: Question about debugging the source of uevents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim Paris escribió:
> Kay Sievers wrote:
>> On Mon, Mar 30, 2009 at 17:27, Tom <tomgparchaur@xxxxxxxxx> wrote:
>>>> Are you running smartd?
>>> Yes, but I have smartd configured to ignore the hard disk if it's in
>>> standby. In syslog I have:
>>> smartd[7004]: Device: /dev/sda, is in STANDBY mode, suspending checks
>>>
>>> And thanks for answering so fast (and wasting your time too).
>> But I guess it open the device node writable, so it might trigger a
>> change event.
> 
> FWIW, on my system with smartmontools 5.38, 
> 
> smartctl -a /dev/sda         => open("/dev/sda", O_RDWR|O_NONBLOCK)
> smartctl -d ata -a /dev/sda  => open("/dev/sda", O_RDONLY|O_NONBLOCK)
> 
> It behaves the same in both cases.  Tom, you might try adding "-d ata"
> to /etc/smartd.conf to see if it works around your problem.
> 
Thanks Jim! That's even better. Now I don't have to use the nowatch udev
rule. With '-d ata' parameter the uvent isn't triggered (and I straced
it too).

> -jim
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux