From: Tom Gundersen Date: Fri, 29 May 2015 18:55:39 +0000 (+0200) Subject: rules: restore block watch after CHANGE events X-Git-Tag: v221~243 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b50063512d4be4d29e0ca5d28f66bc1121861e3b;p=thirdparty%2Fsystemd.git rules: restore block watch after CHANGE events When processing an event, the watch is disabled, make sure it is restorted after a CHANGE event has been processed. --- diff --git a/rules/60-block.rules b/rules/60-block.rules index cfd5010bbda..a69d6480231 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"