summaryrefslogtreecommitdiff
path: root/rules/rules.d
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-06-18 23:05:20 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-06-18 23:05:20 +0200
commitffb187faf9892d0075878b37748373250f29e74b (patch)
tree013254207001fd722edf0a50cbfab3fcb4b2e651 /rules/rules.d
parent325293609392d0feba7a31ca9ed0940c8509c2ea (diff)
rules: move polling rule above 'block' match
Diffstat (limited to 'rules/rules.d')
-rw-r--r--rules/rules.d/60-persistent-storage.rules7
1 files changed, 4 insertions, 3 deletions
diff --git a/rules/rules.d/60-persistent-storage.rules b/rules/rules.d/60-persistent-storage.rules
index 537e1e04b2..5c12cb72d4 100644
--- a/rules/rules.d/60-persistent-storage.rules
+++ b/rules/rules.d/60-persistent-storage.rules
@@ -7,6 +7,10 @@
ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"
ACTION=="remove", GOTO="persistent_storage_end"
+
+# enable in-kernel media-presence polling
+ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}="2000"
+
SUBSYSTEM!="block", GOTO="persistent_storage_end"
# skip rules for inappropriate block devices
@@ -69,9 +73,6 @@ 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"
-# 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"