summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkjackiewicz <kjackiewicz@users.noreply.github.com>2017-05-30 15:19:03 +0200
committerLennart Poettering <lennart@poettering.net>2017-05-30 15:19:03 +0200
commite74d0a9a5cdd8562aeaab1994ebd9c4cd07e82c3 (patch)
treeb153f2785b683b30f9e2aca39d6f4d535c7d57dd
parenttimesyncd: properly handle OOM errors when parsing fallback servers (#6047) (diff)
downloadsystemd-e74d0a9a5cdd8562aeaab1994ebd9c4cd07e82c3.tar.xz
systemd-e74d0a9a5cdd8562aeaab1994ebd9c4cd07e82c3.zip
rules: watch metadata changes in mmcblk devices (#6050)
Formatting sd-cards does not trigger "change" uevents. As a result clients using udev API don't get any updates afterwards and get outdated information about the device. Include mmcblk* in a match for watch option assignment.
-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 42c75974a5..343fc06f85 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!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*", OPTIONS+="watch"
+ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*|mmcblk*", OPTIONS+="watch"