daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
ff6046
From c16785e970b83590fc9de4ea0f7e410470d88db5 Mon Sep 17 00:00:00 2001
ff6046
From: Vojtech Trefny <vtrefny@redhat.com>
ff6046
Date: Tue, 4 Dec 2018 16:47:36 +0100
ff6046
Subject: [PATCH] rules: watch metadata changes on DASD devices
ff6046
ff6046
To make sure the change event is emitted and udev db is updated
ff6046
after metadata changes.
ff6046
ff6046
(cherry picked from commit 38397c8ce044fdc0138c9919168a856c0e16f720)
ff6046
ff6046
Resolves: #1638676
ff6046
---
ff6046
 rules/60-block.rules | 2 +-
ff6046
 1 file changed, 1 insertion(+), 1 deletion(-)
ff6046
ff6046
diff --git a/rules/60-block.rules b/rules/60-block.rules
ff6046
index 343fc06f85..a1458e9188 100644
ff6046
--- a/rules/60-block.rules
ff6046
+++ b/rules/60-block.rules
ff6046
@@ -8,4 +8,4 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_
ff6046
 ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"
ff6046
 
ff6046
 # watch metadata changes, caused by tools closing the device node which was opened for writing
ff6046
-ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*|mmcblk*", OPTIONS+="watch"
ff6046
+ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*|mmcblk*|dasd*", OPTIONS+="watch"