[ofw] Allow opensm to read the command line parameters
Smith, Stan
stan.smith at intel.com
Tue Aug 17 09:12:27 PDT 2010
If you are using 3.3.3 then I would suggest using the last svn commit prior to the commit for 3.3.6.
________________________________
From: Tzachi Dar [mailto:tzachid at mellanox.co.il]
Sent: Tuesday, August 17, 2010 12:31 AM
To: Smith, Stan; ofw at lists.openfabrics.org
Cc: Yevgeny Kliteynik
Subject: RE: Allow opensm to read the command line parameters
You are right, it seems that I have missed this changes.
Thanks
Tzachi
From: Smith, Stan [mailto:stan.smith at intel.com]
Sent: Tuesday, August 17, 2010 12:09 AM
To: Tzachi Dar; ofw at lists.openfabrics.org
Cc: Yevgeny Kliteynik
Subject: RE: Allow opensm to read the command line parameters
take a look at svn commits 2808 & 2809 (which deal with cmd line parsing).
I suspect the getopt() you are using is outdated.
stan.
________________________________
From: ofw-bounces at lists.openfabrics.org [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Tzachi Dar
Sent: Monday, August 16, 2010 5:30 AM
To: ofw at lists.openfabrics.org
Cc: Yevgeny Kliteynik
Subject: [ofw] Allow opensm to read the command line parameters
Please note that although this solution works for opensm it creates a change from the Linux code base.
A different solution might be needed if we want to keep the same code base .
Thanks
Tzachi
Index: opensm/main.c
===================================================================
--- opensm/main.c (revision 6229)
+++ opensm/main.c (working copy)
@@ -725,7 +725,7 @@
}
} while (next_option != -1);
- optind = 0; /* reset command line */
+ optind = 1; /* reset command line */
if (config_file && osm_subn_parse_conf_file(config_file, &opt) < 0)
printf("\nFail to parse config file \'%s\'\n", config_file);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100817/7daa6ed9/attachment.html>
More information about the ofw
mailing list