[openib-general] [PATCH] OpenSM: Change filename from subnet.lst to osm-subnet.lst

Hal Rosenstock halr at voltaire.com
Tue Nov 28 04:02:07 PST 2006


OpenSM: Change filename from subnet.lst to osm-subnet.lst

Default temp directory for non Windows platforms was previously changed
from /tmp to /var/log.

A similar change is needed to ibutils

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: opensm/osm_state_mgr.c
===================================================================
--- opensm/osm_state_mgr.c	(revision 10180)
+++ opensm/osm_state_mgr.c	(working copy)
@@ -1082,12 +1082,12 @@ __osm_topology_file_create(
    CL_PLOCK_ACQUIRE( p_mgr->p_lock );
 
    file_name =
-      ( char * )malloc( strlen( p_mgr->p_subn->opt.dump_files_dir ) + 12 );
+      ( char * )malloc( strlen( p_mgr->p_subn->opt.dump_files_dir ) + 16 );
 
    CL_ASSERT( file_name );
 
    strcpy( file_name, p_mgr->p_subn->opt.dump_files_dir );
-   strcat( file_name, "/subnet.lst" );
+   strcat( file_name, "/osm-subnet.lst" );
 
    if( ( rc = fopen( file_name, "w" ) ) == NULL )
    {
Index: include/opensm/osm_base.h
===================================================================
--- include/opensm/osm_base.h	(revision 10180)
+++ include/opensm/osm_base.h	(working copy)
@@ -177,7 +177,7 @@ BEGIN_C_DECLS
 *
 * DESCRIPTION
 *	Specifies the default temporary directory for the log file,
-*  subnet.lst, and other log files.
+*  osm-subnet.lst, and other log files.
 *
 * SYNOPSIS
 */
Index: man/opensm.8
===================================================================
--- man/opensm.8	(revision 10180)
+++ man/opensm.8	(working copy)
@@ -233,7 +233,7 @@ Display this usage info then exit.
 The following environment variables control opensm behavior:
 
 OSM_TMP_DIR - controls the directory in which the temporary files generated by 
-opensm are created. These files are: subnet.lst, osm.fdbs and osm.mcfdbs.
+opensm are created. These files are: osm-subnet.lst, osm.fdbs and osm.mcfdbs.
 By default, this directory is /tmp.
 
 OSM_CACHE_DIR - opensm stores certain data to the disk such that subsequent







More information about the general mailing list