From c5a41da94916815ac14d950a0547bffc4411f7af Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 18 Jun 2011 21:01:33 +0200 Subject: [PATCH] rules: enable in-kernel media-presence polling --- rules/rules.d/60-persistent-storage.rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rules/rules.d/60-persistent-storage.rules b/rules/rules.d/60-persistent-storage.rules index 0a21d854..537e1e04 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) -- 2.39.5