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:
c6d4aeb
)
path_id: fix SAS device path generation
author
Hannes Reinecke
<hare@suse.de>
Fri, 21 Apr 2006 18:02:58 +0000
(20:02 +0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Fri, 21 Apr 2006 18:02:58 +0000
(20:02 +0200)
extras/path_id/path_id
[changed mode: 0755->0644]
patch
|
blob
|
history
diff --git
a/extras/path_id/path_id
b/extras/path_id/path_id
old mode 100755
(executable)
new mode 100644
(file)
index
3f8efd6
..
7f0d53a
--- a/
extras/path_id/path_id
+++ b/
extras/path_id/path_id
@@
-232,7
+232,7
@@
handle_sas () {
sas_phy_path="${sas_phy_path%%/target*}"
sas_phy_id="${sas_phy_path%%/*}"
sas_rphy_id="${sas_phy_path##*/}"
sas_phy_path="${sas_phy_path%%/target*}"
sas_phy_id="${sas_phy_path%%/*}"
sas_rphy_id="${sas_phy_path##*/}"
- sas_phy_dev="
${sas_host_path}/${sas_phy_id}/sas_phy:
${sas_phy_id}"
+ sas_phy_dev="
/sys/class/sas_phy/
${sas_phy_id}"
if [ -e "$sas_phy_dev/sas_address" ]; then
read phy_address < $sas_phy_dev/sas_address
read phy_port < $sas_phy_dev/port_identifier
if [ -e "$sas_phy_dev/sas_address" ]; then
read phy_address < $sas_phy_dev/sas_address
read phy_port < $sas_phy_dev/port_identifier
@@
-244,7
+244,7
@@
handle_sas () {
return
fi
sas_phy_address="$phy_address:$phy_port:$phy_id"
return
fi
sas_phy_address="$phy_address:$phy_port:$phy_id"
- sas_rphy_dev="
${sas_host_path}/${sas_phy_path}/sas_rphy:
${sas_rphy_id}"
+ sas_rphy_dev="
/sys/class/sas_device/
${sas_rphy_id}"
if [ -e "$sas_rphy_dev/sas_address" ]; then
read rphy_address < $sas_rphy_dev/sas_address
read rphy_id < $sas_rphy_dev/phy_identifier
if [ -e "$sas_rphy_dev/sas_address" ]; then
read rphy_address < $sas_rphy_dev/sas_address
read rphy_id < $sas_rphy_dev/phy_identifier