[ewg] [PATCH] ibstatus - small script change

Sasha Khapyorsky sashak at voltaire.com
Tue Feb 19 15:15:03 PST 2008


On 16:33 Tue 12 Feb     , Jeremy Brown wrote:
> The ibstatus script, in infiniband-diags, doesn't tolerate a missing
> device very well. This small fix makes the output a bit more useful.
> 
> Before: $ ibstatus
> /usr/bin/ibstatus: line 60: cd: /sys/class/infiniband: No such file or directory
> Fatal error:  device '8cpu-mdout.8hoursamber8-8hr-2007-09-06-01:52:23': sys
> files not found
> (/sys/class/infiniband/8cpu-mdout.8hoursamber8-8hr-2007-09-06-01:52:23/ports)
> 
> After: $ ibstatus
> Fatal error:  No devices
> 
> Thanks for considering this!
> 
> Jeremy
> 
> --- infiniband-diags-1.3.5-orig/scripts/ibstatus        2008-02-07 02:35:43.000000000 -0800
> +++ infiniband-diags-1.3.5/scripts/ibstatus     2008-02-12 15:50:58.000000000 -0800

Applied. Thanks.

Please note, that your mailer mangles whitespaces. Also next time please
provide Signed-off-by: line.

Sasha



More information about the ewg mailing list