From: kjackiewicz Date: Tue, 30 May 2017 13:19:03 +0000 (+0200) Subject: rules: watch metadata changes in mmcblk devices (#6050) X-Git-Tag: v234~157 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e74d0a9a5cdd8562aeaab1994ebd9c4cd07e82c3;p=platform%2Fupstream%2Fsystemd.git 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. --- diff --git a/rules/60-block.rules b/rules/60-block.rules index 42c7597..343fc06 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"