summaryrefslogtreecommitdiff
path: root/rules/60-block.rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules/60-block.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 de41499cb7..a69d648023 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"