chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bba8160
)
path_id: append LUN to iSCSI path
author
Kay Sievers
<kay.sievers@vrfy.org>
Mon, 5 Feb 2007 15:15:52 +0000
(16:15 +0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Mon, 5 Feb 2007 15:15:52 +0000
(16:15 +0100)
extras/path_id/path_id
patch
|
blob
|
history
diff --git
a/extras/path_id/path_id
b/extras/path_id/path_id
index 44754cdedd23888e1051d9992c42cee16b269c43..8927d84ffb729215be1c3a56836b941518d6324c 100644
(file)
--- 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_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##*/}"
# 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
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
}
RESULT=0
}