------- Comment From <email address hidden> 2017-12-21 00:16 EDT-------
(In reply to comment #51)
> I think the upstream patch for lsdevinfo is incomplete as there is another
> call to cat. From the code:
>
> 254 # get the physical location
> 255 physloc=$($CAT $dev/ibm,loc-code)
> 256 type="$($OD -t x2 $dev/vendor-id $dev/device-id |
> 257 $CUT -f3,5 -d ' ' -s --output-delimiter='')"
>
> Do the other commands that were problematic (ls-vscsi, ls-veth, and
> ofpathname) work?
Issue is observed even with other commands.
:~# ls-vscsi
/usr/sbin/ls-vscsi: line 72: warning: command substitution: ignored null byte in input
host0 U8286.42A.1069B3T-V8-C17-T1
~# ls-veth
/usr/sbin/ls-veth: line 74: warning: command substitution: ignored null byte in input
ibmveth2 U8286.42A.1069B3T-V8-C2-T1
:~# ofpathname /dev/sda
/usr/sbin/ofpathname: line 812: warning: command substitution: ignored null byte in input
/usr/sbin/ofpathname: line 865: cd: too many arguments
/vdevice/v-scsi@30000011/disk@8100000000000000
------- Comment From <email address hidden> 2017-12-21 00:16 EDT------- delimiter= '')"
(In reply to comment #51)
> I think the upstream patch for lsdevinfo is incomplete as there is another
> call to cat. From the code:
>
> 254 # get the physical location
> 255 physloc=$($CAT $dev/ibm,loc-code)
> 256 type="$($OD -t x2 $dev/vendor-id $dev/device-id |
> 257 $CUT -f3,5 -d ' ' -s --output-
>
> Do the other commands that were problematic (ls-vscsi, ls-veth, and
> ofpathname) work?
Issue is observed even with other commands.
:~# ls-vscsi 1069B3T- V8-C17- T1 1069B3T- V8-C2-T1 ofpathname: line 812: warning: command substitution: ignored null byte in input ofpathname: line 865: cd: too many arguments v-scsi@ 30000011/ disk@8100000000 000000
/usr/sbin/ls-vscsi: line 72: warning: command substitution: ignored null byte in input
host0 U8286.42A.
~# ls-veth
/usr/sbin/ls-veth: line 74: warning: command substitution: ignored null byte in input
ibmveth2 U8286.42A.
:~# ofpathname /dev/sda
/usr/sbin/
/usr/sbin/
/vdevice/