Skip to content

Commit e74d0a9

Browse files
kjackiewiczpoettering
authored andcommitted
rules: watch metadata changes in mmcblk devices (systemd#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.
1 parent c4c0691 commit e74d0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/60-block.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_
88
ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"
99

1010
# watch metadata changes, caused by tools closing the device node which was opened for writing
11-
ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*", OPTIONS+="watch"
11+
ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*|mmcblk*", OPTIONS+="watch"

0 commit comments

Comments
 (0)