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