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

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