[openib-general] [PATCH] opensm: option to limit size of OpenSM log file

Sasha Khapyorsky sashak at voltaire.com
Wed Aug 23 12:15:42 PDT 2006


Hi Hal,

On 01:34 Wed 23 Aug     , Sasha Khapyorsky wrote:
> On 18:26 Tue 22 Aug     , Hal Rosenstock wrote:
> > On Tue, 2006-08-22 at 18:22, Sasha Khapyorsky wrote:
> > > On 17:54 Tue 22 Aug     , Hal Rosenstock wrote:
> > > > Hi Sasha,
> > > > 
> > > > On Tue, 2006-08-22 at 17:18, Sasha Khapyorsky wrote:
> > > > > Hi Hal,
> > > > > 
> > > > > There is new option which specified max size of OpenSM log file. The
> > > > > default is '0' (not-limited). Please note osm_log_init() has new
> > > > > parameter now.
> > > > 
> > > > So libopensm.ver needs to be bumped (and this is not backward
> > > > compatible).
> > > 
> > > We may. I'm not sure it is necessary - in this patch I've changed all
> > > occurrences of osm_log_init() under osm/ (in opensm and osmtest). So
> > > this can be important only if there are osm_log "external" users.
> > 
> > There may be so I will do this.
> 
> Ok. Thanks.

Found one more osm_log_init(). There is.

Sasha


Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>

diff --git a/diags/src/saquery.c b/diags/src/saquery.c
index f0d1299..0bb46be 100644
--- a/diags/src/saquery.c
+++ b/diags/src/saquery.c
@@ -443,7 +443,7 @@ get_bind_handle(void)
 
 	osm_log_construct(&log_osm);
 	if ((status = osm_log_init( &log_osm, TRUE,
-				    0x0001, NULL, TRUE )) != IB_SUCCESS) {
+				    0x0001, NULL, 0, TRUE )) != IB_SUCCESS) {
 		fprintf(stderr, "Failed to init osm_log: %s\n",
 			ib_get_err_str(status));
 		exit (-1);

> 
> Sasha
> 
> > 
> > -- Hal
> >  
> > 
> > 
> 
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
> 




More information about the general mailing list