On Tue, 8 Jul 2014, loody wrote:

> > An alternative is to write a positive value, such as 240000, to
> >
> >         /sys/block/sdX/events_poll_msecs
> >
> > where X is replaced with the proper drive letter.  (240000 ms = 240 s =
> > 4 m.)  I'm not sure this will work, but it's worth a try.
> 
> I cannot find events_poll_msecs you mentioned in my system.
> Is this capability related to kernel version?
> ( my kernel version is 2.6.38.8 )

Well, the in-kernel disk events mechanism was added in 2.6.38, but it 
may not have been implemented for your type of drive.

Probably you don't actually need to do a read.  Simply opening the 
device file ought to be sufficient.

Alan Stern

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

Reply via email to