[libmultipath] move get_refwwid() to libmultipath/configure.c
[platform/upstream/multipath-tools.git] / multipath / multipath.rules
1 #
2 # multipath and multipath partitions nodes are created in /dev/mapper/
3 # this file should be installed in /etc/udev/rules.d
4 #
5 # !! udev must not discard DM events !!
6 # !! check the other installed rules !!
7 #
8
9 # lookup the devmap name
10 #ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
11 #       PROGRAM="/sbin/devmap_name %M %m"
12 ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
13         PROGRAM="/sbin/dmsetup -j %M -m %m --noopencount --noheadings -c -o name info"
14
15 # take care of devmap partitioning
16 ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
17         RUN+="/sbin/kpartx -a /dev/mapper/%c"
18