aboutsummaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-05-29 20:55:39 +0200
committerAnthony G. Basile <blueness@gentoo.org>2015-07-20 07:14:41 -0400
commit0617e636ab3f2a05cb22a3fd34c6d196cf19d4b7 (patch)
tree2d66f6536c17306bec48a31282b6d8027cb0282a /rules
parentrules: fix typo in block watch rule (diff)
downloadeudev-0617e636ab3f2a05cb22a3fd34c6d196cf19d4b7.tar.gz
eudev-0617e636ab3f2a05cb22a3fd34c6d196cf19d4b7.tar.bz2
eudev-0617e636ab3f2a05cb22a3fd34c6d196cf19d4b7.zip
rules: restore block watch after CHANGE events
When processing an event, the watch is disabled, make sure it is restorted after a CHANGE event has been processed. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'rules')
-rw-r--r--rules/60-block.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/60-block.rules b/rules/60-block.rules
index cfd5010bb..a69d64802 100644
--- a/rules/60-block.rules
+++ b/rules/60-block.rules
@@ -8,4 +8,4 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_
ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"
# watch metadata changes, caused by tools closing the device node which was opened for writing
-ACTION=="add", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*", OPTIONS+="watch"
+ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*", OPTIONS+="watch"