diff options
author | Tom Gundersen <teg@jklm.no> | 2015-05-29 20:55:39 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-05-30 02:14:25 +0200 |
commit | b50063512d4be4d29e0ca5d28f66bc1121861e3b (patch) | |
tree | 36ca397225ed276f92e35a544ad988abe76f3f60 /rules | |
parent | rules: fix typo in block watch rule (diff) | |
download | systemd-b50063512d4be4d29e0ca5d28f66bc1121861e3b.tar.xz systemd-b50063512d4be4d29e0ca5d28f66bc1121861e3b.zip |
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.
Diffstat (limited to 'rules')
-rw-r--r-- | rules/60-block.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/60-block.rules b/rules/60-block.rules index cfd5010bbd..a69d648023 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" |