Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
powerpc-utils.32011
powerpc-utils-scripts-ofpathname-handle-nsid-of...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File powerpc-utils-scripts-ofpathname-handle-nsid-of-nvme.patch of Package powerpc-utils.32011
From 8a7aa61c5f520df03e53e6f7e1d63b7d5c432376 Mon Sep 17 00:00:00 2001 From: Wen Xiong <wenxiong@linux.ibm.com> Date: Wed, 15 Nov 2023 14:37:43 -0600 Subject: [PATCH] powerpc-utils/scripts/ofpathname: handle nsid of nvme device as hex number Git-commit: 8a7aa61c5f520df03e53e6f7e1d63b7d5c432376 Installation fails if nsid of nvme device is greater than 10. The patch fixes the issue and handle nsid of nvme ad a hex number. Signed-off-by: Wen Xiong <wenxiong@linux.ibm.com> Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com> --- scripts/ofpathname | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/ofpathname b/scripts/ofpathname index 3abe4d1..833d03f 100755 --- a/scripts/ofpathname +++ b/scripts/ofpathname @@ -722,6 +722,7 @@ l2of_nvme() err $ERR_NO_OFPATH fi + devnsid=$(printf "%x" $devnsid) OF_PATH="$OF_PATH/$devtype@$devnsid" # No partition (pZ) specified. @@ -1798,6 +1799,7 @@ of2l_nvme() cd $dir local devnsid=`$CAT ./nsid 2>/dev/null` + devnsid=$(printf "%x" $devnsid) if [[ $devnsid = $nsid ]]; then LOGICAL_DEVNAME="${dir##*/}" break -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor