public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* ibdiagpath return code incorrect
@ 2009-10-16 23:15 Edward Mascarenhas
  0 siblings, 0 replies; only message in thread
From: Edward Mascarenhas @ 2009-10-16 23:15 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA, EWG
  Cc: kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb

It appears that even on error ibdiagpath is returning zero but it
should return non-zero for error cases. Scripts that call ibdiagpath
can use the return code to take appropriate action.

Here is an example.

==================================================
service0: # ibdiagpath -i 1 -d 1,12
Loading IBDIAGPATH from: /usr/lib64/ibdiagpath1.2
-W- Topology file is not specified.
    Reports regarding cluster links will use direct routes.
Loading IBDM from: /usr/lib64/ibdm1.2
-I- Using port 1 as the local port
    (since that is the output port based on the provided direct route).

-I---------------------------------------------------
-I- Traversing the path from local to destination
-I---------------------------------------------------
-I- From: lid=0x000c guid=0x0002c90200291949 dev=25218 service0/P1
-I- To:   lid=0x001d guid=0x0800690000005264 dev=48438 Port=28


can't read "PATH(1)": no such element in array

service0:/tmp/src # echo $?
0
service0:/tmp/src #
================================================

Assuming this is a bug, I don't have a fix, but I'm hoping someone who
is more familiar with the ibdiagpath code will provide a fix.

Thanks,
Edward

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-16 23:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-16 23:15 ibdiagpath return code incorrect Edward Mascarenhas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox