summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-02-05 16:15:52 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-02-05 16:15:52 +0100
commit5ab2e3c2c3efe9b25861ddf560b3760b9384090d (patch)
tree1e7271ef91c6e0697b419c25e94e82001703096f
parentbba8160f5166264b5cfd120e113a9187b7ed6c46 (diff)
path_id: append LUN to iSCSI path
-rw-r--r--extras/path_id/path_id4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/path_id/path_id b/extras/path_id/path_id
index 44754cdedd..8927d84ffb 100644
--- a/extras/path_id/path_id
+++ b/extras/path_id/path_id
@@ -332,6 +332,7 @@ handle_iscsi() {
local iscsi_session_dir
local iscsi_session iscsi_session_path
local iscsi_connection iscsi_connection_path
+ local iscsi_scsi_lun
# iSCSI device
iscsi_session_dir="${DEV%%/target*}"
iscsi_session="${iscsi_session_dir##*/}"
@@ -378,7 +379,8 @@ handle_iscsi() {
if [ -e "${iscsi_connection_path}/persistent_port" ] ; then
read iscsi_port < ${iscsi_connection_path}/persistent_port
fi
- d="ip-${iscsi_address}:${iscsi_port}-iscsi-${iscsi_tgtname}"
+ iscsi_scsi_lun="${DEV##*:}"
+ d="ip-${iscsi_address}:${iscsi_port}-iscsi-${iscsi_tgtname}-lun-${iscsi_scsi_lun}"
RESULT=0
}