dcavalca / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone
Zbigniew Jędrzejewski-Szmek 436654
From 1499fac10a20159ec9f57734fa3f9e72a25cb19c Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 436654
From: Alex Crawford <alex.crawford@coreos.com>
Zbigniew Jędrzejewski-Szmek 436654
Date: Thu, 4 Jun 2015 15:54:35 -0700
Zbigniew Jędrzejewski-Szmek 436654
Subject: [PATCH] rules: whitelist xvd* devices
Zbigniew Jędrzejewski-Szmek 436654
Zbigniew Jędrzejewski-Szmek 436654
Xen disks need to be whitelisted as well.
Zbigniew Jędrzejewski-Szmek 436654
Zbigniew Jędrzejewski-Szmek 436654
(cherry picked from commit bb5c512de22eeb7464f120a01fd1d59e7a4bbb7b)
Zbigniew Jędrzejewski-Szmek 436654
---
Zbigniew Jędrzejewski-Szmek 436654
 rules/60-block.rules              | 2 +-
Zbigniew Jędrzejewski-Szmek 436654
 rules/60-persistent-storage.rules | 2 +-
Zbigniew Jędrzejewski-Szmek 436654
 2 files changed, 2 insertions(+), 2 deletions(-)
Zbigniew Jędrzejewski-Szmek 436654
Zbigniew Jędrzejewski-Szmek 436654
diff --git a/rules/60-block.rules b/rules/60-block.rules
Zbigniew Jędrzejewski-Szmek 436654
index a69d648023..c74caca49f 100644
Zbigniew Jędrzejewski-Szmek 436654
--- a/rules/60-block.rules
Zbigniew Jędrzejewski-Szmek 436654
+++ b/rules/60-block.rules
Zbigniew Jędrzejewski-Szmek 436654
@@ -8,4 +8,4 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_
Zbigniew Jędrzejewski-Szmek 436654
 ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"
Zbigniew Jędrzejewski-Szmek 436654
 
Zbigniew Jędrzejewski-Szmek 436654
 # watch metadata changes, caused by tools closing the device node which was opened for writing
Zbigniew Jędrzejewski-Szmek 436654
-ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*", OPTIONS+="watch"
Zbigniew Jędrzejewski-Szmek 436654
+ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*", OPTIONS+="watch"
Zbigniew Jędrzejewski-Szmek 436654
diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules
Zbigniew Jędrzejewski-Szmek 436654
index 64c5f1cfdd..2daeb6db42 100644
Zbigniew Jędrzejewski-Szmek 436654
--- a/rules/60-persistent-storage.rules
Zbigniew Jędrzejewski-Szmek 436654
+++ b/rules/60-persistent-storage.rules
Zbigniew Jędrzejewski-Szmek 436654
@@ -6,7 +6,7 @@
Zbigniew Jędrzejewski-Szmek 436654
 ACTION=="remove", GOTO="persistent_storage_end"
Zbigniew Jędrzejewski-Szmek 436654
 
Zbigniew Jędrzejewski-Szmek 436654
 SUBSYSTEM!="block", GOTO="persistent_storage_end"
Zbigniew Jędrzejewski-Szmek 436654
-KERNEL!="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|sr*|vd*|bcache*|xvd*", GOTO="persistent_storage_end"
Zbigniew Jędrzejewski-Szmek 436654
+KERNEL!="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|sr*|vd*|xvd*|bcache*", GOTO="persistent_storage_end"
Zbigniew Jędrzejewski-Szmek 436654
 
Zbigniew Jędrzejewski-Szmek 436654
 # ignore partitions that span the entire disk
Zbigniew Jędrzejewski-Szmek 436654
 TEST=="whole_disk", GOTO="persistent_storage_end"