From 27fcba64293cd490f90cde2d1078f9b5f5d6f588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20T=C3=B6r=C3=B6k?= Date: Wed, 28 Jul 2021 14:57:10 +0000 Subject: [PATCH] CA-356983: ignore more rules on td/nbd devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each change on td* and nbd* devices still trigger some udev rules. For full list see the output of: ``` udevadm test --action=change $(udevadm info --query=path --name=/dev/tda) ``` With the `nompath` ENV var set the special casing of nbd and td in 65-multipath is not needed anymore (and also works with 62-multipath.rules, which didn't ignore these devices previously). blktap could also drop its special patch for 65-md-incremental.rules. Signed-off-by: Edwin Török --- udev/58-xapi.rules | 2 +- udev/65-multipath.rules | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/udev/58-xapi.rules b/udev/58-xapi.rules index 7a50a8e3b..de18c3562 100644 --- a/udev/58-xapi.rules +++ b/udev/58-xapi.rules @@ -3,7 +3,7 @@ # Skip block devices - no networks in here SUBSYSTEM!="block", GOTO="end_xapi" -ACTION=="add|change", KERNEL=="xvd*", GOTO="ignore_device" +ACTION=="add|change", KERNEL=="xvd*|td*|nbd*", GOTO="ignore_device" # srX are not partitions, go check if it's a cdrom. handle remove specially. ACTION=="remove", KERNEL=="sr[0-9]", GOTO="usb_symlink" diff --git a/udev/65-multipath.rules b/udev/65-multipath.rules index b92f5c6f4..99af3113d 100644 --- a/udev/65-multipath.rules +++ b/udev/65-multipath.rules @@ -1,6 +1,4 @@ SUBSYSTEM!="block", GOTO="end_mpath" -KERNEL=="nbd*", GOTO="end_mpath" -KERNEL=="td[a-z]*", GOTO="end_mpath" # like in 62-multipath.rules ENV{nompath}=="?*", GOTO="end_mpath"