chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b20fd3c
)
rules: enable in-kernel media-presence polling
author
Kay Sievers
<kay.sievers@vrfy.org>
Sat, 18 Jun 2011 19:01:33 +0000
(21:01 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Sat, 18 Jun 2011 19:01:33 +0000
(21:01 +0200)
rules/rules.d/60-persistent-storage.rules
patch
|
blob
|
history
diff --git
a/rules/rules.d/60-persistent-storage.rules
b/rules/rules.d/60-persistent-storage.rules
index 0a21d85459853c7934d7741543f388f472d184fa..537e1e04b247fa79936598feb0ffa2e9fc47ed97 100644
(file)
--- 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)