summaryrefslogtreecommitdiff
path: root/rules/rules.d
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-06-18 21:01:33 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-06-18 21:01:33 +0200
commitc5a41da94916815ac14d950a0547bffc4411f7af (patch)
tree59141ccf5d55ce4640db4f9be11f81878bf88695 /rules/rules.d
parentb20fd3cb3423676a86f12189126b012d2297d5f7 (diff)
rules: enable in-kernel media-presence polling
Diffstat (limited to 'rules/rules.d')
-rw-r--r--rules/rules.d/60-persistent-storage.rules5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules/rules.d/60-persistent-storage.rules b/rules/rules.d/60-persistent-storage.rules
index 0a21d85459..537e1e04b2 100644
--- a/rules/rules.d/60-persistent-storage.rules
+++ b/rules/rules.d/60-persistent-storage.rules
@@ -69,7 +69,10 @@ KERNEL=="sr*", ENV{DISK_EJECT_REQUEST}!="?*", ENV{ID_CDROM_MEDIA_TRACK_COUNT_DAT
# probe filesystem metadata of disks
KERNEL!="sr*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
-# watch for future changes
+# enable in-kernel media-presence polling
+SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}="2000"
+
+# watch metadata changes by tools closing the device after writing
KERNEL!="sr*", OPTIONS+="watch"
# by-label/by-uuid links (filesystem metadata)