Am 24.07.2015 um 16:37 schrieb Thomas Schmitt:
> Hi,
>
> Michael Biebl wrote:
>> Not sure if the in-kernel polling enabled in
>> /lib/udev/rules.d/60-block.rules
>> triggers this specific behaviour for this particular drive.
>>
>> Can you comment out the following two lines:
>> ACTION=="add", SUBSYSTEM=="module", KERNEL=="block",
>> ATTR{parameters/events_dfl_poll_msecs}=="0", \
>> ATTR{parameters/events_dfl_poll_msecs}="2000"
>
> There is no such file in my still quite vanilla 8.1.
Ok, it wasn't clear which Debian version you were using. I was referring
to unstable/testing.
> I find events_dfl_poll_msecs in
> /lib/udev/rules.d/60-persistent-storage.rules
>
> # enable in-kernel media-presence polling
> ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}=="0", ATTR{parameters/events_dfl_poll_msecs}="2000"
> ACTION=="add", ATTR{removable}=="1", ATTR{events_poll_msecs}=="-1", ATTR{events_poll_msecs}="2000"
>
> Ok, i commented out the last two of above three lines
> and stored the file. No change in behavior.
>
> Do i have anything to do in order to activate the rule ?
> udevadm control --reload ? udevadm trigger ?
> (Reboot will be very inconvenient.)
Reloading the udev rules won't unset that sysfs parameter. The easiest
is to reboot.
You should be able to reset that parameter though via
echo 0 > /sys/module/block/parameters/events_dfl_poll_msecs
Attachment:
signature.asc
Description: OpenPGP digital signature