File powerpc-utils.ofpathname.show_of_path.patch of Package powerpc-utils
show_of_path handles more block device types (#142637)
scripts/ofpathname | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
--- a/scripts/ofpathname
+++ b/scripts/ofpathname
@@ -283,7 +283,7 @@ logical_to_ofpathname()
if [[ $is_pata = "yes" ]]; then
l2of_ide
else
- l2of_scsi
+ l2of_scsi_show_of_path
fi ;;
hd*) l2of_ide ;;
fd*) echo "no fd support yet" ;;
@@ -381,6 +381,14 @@ int_to_scsilun()
echo "$lunstr"
}
+l2of_scsi_show_of_path()
+{
+ if test -b /dev/$DEVICE
+ then
+ OF_PATH="`/bin/show_of_path.sh /dev/$DEVICE`"
+ fi
+}
+
#
# l2of_scsi
# Converion routine for logical => OF path of scsi devices