home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
etc
/
udev
/
rules.d
/
71-multipath.rules
< prev
next >
Wrap
Text File
|
2006-11-29
|
869b
|
26 lines
#
# persistent links for device-mapper devices
# only hardware-backed device-mapper devices (ie multipath, dmraid,
# and kpartx) have meaningful persistent device names
#
KERNEL!="dm-*", GOTO="multipath_end"
ACTION=="add|remove", GOTO="multipath_end"
ACTION=="change", IMPORT{program}=="/sbin/kpartx_id %M %m"
# Create persistent links for tables
ACTION=="change", ENV{ID_DM_TABLE}=="mpath|dmraid", ENV{ID_DM_TYPE}=="?*", \
SYMLINK+="disk/by-id/$env{ID_DM_TYPE}-$env{ID_DM_NAME}"
# Create dm tables for partitions
ACTION=="change", ENV{ID_DM_TABLE}=="mpath|dmraid", \
RUN+="/sbin/kpartx -a -p _part /dev/mapper/$env{ID_DM_NAME}"
# Create persistent links for partitions
ACTION=="change", ENV{ID_DM_TABLE}=="part", ENV{ID_DM_TYPE}=="?*", \
SYMLINK+="disk/by-id/$env{ID_DM_TYPE}-$env{ID_DM_NAME}-part$env{ID_DM_PART}"
LABEL="multipath_end"