Re: Question about debugging the source of uevents

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

 



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.

-jim


--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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