summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-08-16 13:20:04 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-08-16 14:34:10 +0200
commit5492c62a25313ec645e7330c016e2e406f5205e0 (patch)
tree55aea0957d6eb954bf835c4af417dbb9869de9a8 /rules
parentf364a17dd165b398bd15470e93726bf6ca90be90 (diff)
downloadsystemd-5492c62a25313ec645e7330c016e2e406f5205e0.tar.gz
udev: assume all devices which have persistent links also need to be watched
We had two similar lists, but one was accepting many more device types. I assume that this is by mistake, simply because the lack of device links is easier to notice than the lack of synthesized event after the device is written to. This uses the same list in both places, effectively adding "watch" attribute to /dev/nbd*, /dev/zd*, etc.
Diffstat (limited to 'rules')
-rw-r--r--rules/60-block.rules4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules/60-block.rules b/rules/60-block.rules
index 491081f0b2..a320e63103 100644
--- a/rules/60-block.rules
+++ b/rules/60-block.rules
@@ -8,4 +8,6 @@ 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!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*|mmcblk*|dasd*|nbd*", OPTIONS+="watch"
+ACTION!="remove", SUBSYSTEM=="block", \
+ KERNEL=="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|vd*|xvd*|bcache*|cciss*|dasd*|ubd*|scm*|pmem*|nbd*|zd*", \
+ OPTIONS+="watch"