Skip to content

Commit

Permalink
CA-356983: ignore more rules on td/nbd devices
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
edwintorok committed Jul 28, 2021
1 parent 9faa4d4 commit 27fcba6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion udev/58-xapi.rules
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions udev/65-multipath.rules
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 27fcba6

Please sign in to comment.