~ubuntu-core-dev/ubuntu/precise/udev/ubuntu

« back to all changes in this revision

Viewing changes to debian/patches/builtin-block-polling.patch

  • Committer: Martin Pitt
  • Date: 2012-03-28 09:27:54 UTC
  • Revision ID: martin.pitt@canonical.com-20120328092754-a3za5cnhsqd3j8gx
builtin-block-polling.patch: Fix default attribute comparison for CD
drives, the default value of events_poll_msecs is -1, not 0. This really
makes in-kernel polling work for those.

Show diffs side-by-side

added added

removed removed

10
10
 
11
11
 # enable in-kernel media-presence polling
12
12
 ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}=="0", ATTR{parameters/events_dfl_poll_msecs}="2000"
13
 
+ACTION=="add", KERNEL=="sr*", ATTR{events_poll_msecs}=="0", ATTR{events_poll_msecs}="2000"
 
13
+ACTION=="add", KERNEL=="sr*", ATTR{events_poll_msecs}=="-1", ATTR{events_poll_msecs}="2000"
14
14
 
15
15
 SUBSYSTEM!="block", GOTO="persistent_storage_end"
16
16