path_id: fix fibre channel handling

This commit is contained in:
Kay Sievers 2008-11-21 20:48:24 +01:00
parent 4435308844
commit c3f0b654fc

View File

@ -254,7 +254,7 @@ handle_fc () {
fc_tgt_lun="${fc_tgt_hcil##*:}"
fc_tgt_path="${DEV%/*}"
fc_tgt_num="${fc_tgt_path##*/}"
fc_tgt_dev="${fc_tgt_path}/fc_transport:${fc_tgt_num}"
fc_tgt_dev="${fc_tgt_path}/fc_transport/${fc_tgt_num}"
if [ -e "$fc_tgt_dev/port_name" ]; then
read wwpn < $fc_tgt_dev/port_name
fi