[dm-devel] [PATCH 24/78] multipath.rules: Whitelist devices
Hannes Reinecke
hare at suse.de
Mon Mar 16 12:36:11 UTC 2015
Currently multipath runs only on SCSI and DASD
devices (and cciss, but they are no longer supported).
So we can as well whitelist them and avoid the curious
warning about 'multipath -u /dev/loop failed'.
Signed-off-by: Hannes Reinecke <hare at suse.de>
---
multipath/multipath.rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/multipath/multipath.rules b/multipath/multipath.rules
index 5bc5068..56056bf 100644
--- a/multipath/multipath.rules
+++ b/multipath/multipath.rules
@@ -4,7 +4,7 @@ SUBSYSTEM!="block", GOTO="end_mpath"
ENV{MPATH_SBIN_PATH}="/sbin"
TEST!="$env{MPATH_SBIN_PATH}/multipath", ENV{MPATH_SBIN_PATH}="/usr/sbin"
-SUBSYSTEM=="block", ACTION=="add|change", KERNEL!="dm-*", \
+SUBSYSTEM=="block", ACTION=="add|change", KERNEL=="sd*[!0-9]|dasd*[!0-9]", \
ENV{DM_MULTIPATH_DEVICE_PATH}!="1", \
PROGRAM=="$env{MPATH_SBIN_PATH}/multipath -u %k", \
ENV{DM_MULTIPATH_DEVICE_PATH}="1" \
--
1.8.4.5
More information about the dm-devel
mailing list