Re: dummy scsi read or scsi command periodically for external USB Hard Disk

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

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux