]> err.no Git - systemd/commitdiff
path_id: append LUN to iSCSI path
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 5 Feb 2007 15:15:52 +0000 (16:15 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 5 Feb 2007 15:15:52 +0000 (16:15 +0100)
extras/path_id/path_id

index 44754cdedd23888e1051d9992c42cee16b269c43..8927d84ffb729215be1c3a56836b941518d6324c 100644 (file)
@@ -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
 }