Blame SOURCES/59-fc-wwpn-id.rules

85ee44
#
85ee44
# FC WWPN-based by-path links
85ee44
#
85ee44
85ee44
ACTION!="add|change", GOTO="fc_wwpn_end"
85ee44
KERNEL!="sd*", GOTO="fc_wwpn_end"
85ee44
85ee44
ENV{DEVTYPE}=="disk", IMPORT{program}="fc_wwpn_id %p"
85ee44
ENV{DEVTYPE}=="partition", IMPORT{parent}="FC_*"
85ee44
ENV{FC_TARGET_WWPN}!="?*", GOTO="fc_wwpn_end"
85ee44
ENV{FC_INITIATOR_WWPN}!="?*", GOTO="fc_wwpn_end"
85ee44
ENV{FC_TARGET_LUN}!="?*", GOTO="fc_wwpn_end"
85ee44
85ee44
ENV{DEVTYPE}=="disk", SYMLINK+="disk/by-path/fc-$env{FC_INITIATOR_WWPN}-$env{FC_TARGET_WWPN}-lun-$env{FC_TARGET_LUN}"
85ee44
ENV{DEVTYPE}=="partition", SYMLINK+="disk/by-path/fc-$env{FC_INITIATOR_WWPN}-$env{FC_TARGET_WWPN}-lun-$env{FC_TARGET_LUN}-part%n"
85ee44
85ee44
LABEL="fc_wwpn_end"