On Mon, 2008-11-10 at 23:02 +0200, Sasha Khapyorsky wrote:
> Hi Al,
> 
> On 15:01 Thu 30 Oct     , Al Chu wrote:
> > Hey Sasha,
> > 
> > I noticed that after the config file is rescanned, the new potential
> > inputs aren't checked for validity.  Patch is attached.
> > 
> > Al
> > 
> > -- 
> > Albert Chu
> > [EMAIL PROTECTED]
> > Computer Scientist
> > High Performance Systems Division
> > Lawrence Livermore National Laboratory
> 
> > From edfcd2de96c3525d1609b4c0f03c17ecc0495c18 Mon Sep 17 00:00:00 2001
> > From: root <[EMAIL PROTECTED](none)>
> > Date: Thu, 30 Oct 2008 13:58:55 -0700
> > Subject: [PATCH] verify rescanned config input
> > 
> > 
> > Signed-off-by: root <[EMAIL PROTECTED](none)>
>                  ^^^^^^^^^^^^^^^^^^^^^^^^
> 
> I'm fine with this patch, but could you fix S-O-B line? Thanks.

Oops.  New one is attached (I'll repost the [1/2] patch too).

Al

> Sasha
-- 
Albert Chu
[EMAIL PROTECTED]
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
>From edfcd2de96c3525d1609b4c0f03c17ecc0495c18 Mon Sep 17 00:00:00 2001
From: root <[EMAIL PROTECTED](none)>
Date: Thu, 30 Oct 2008 13:58:55 -0700
Subject: [PATCH] verify rescanned config input


Signed-off-by: Albert Chu <[EMAIL PROTECTED]>
---
 opensm/opensm/osm_subnet.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/osm_subnet.c b/opensm/opensm/osm_subnet.c
index ab2ff9c..5cf9c33 100644
--- a/opensm/opensm/osm_subnet.c
+++ b/opensm/opensm/osm_subnet.c
@@ -71,6 +71,8 @@
 
 static const char null_str[] = "(null)";
 
+static void subn_verify_conf_file(IN osm_subn_opt_t * const p_opts);
+
 /**********************************************************************
  **********************************************************************/
 void osm_subn_construct(IN osm_subn_t * const p_subn)
@@ -852,6 +854,8 @@ int osm_subn_rescan_conf_files(IN osm_subn_t * const p_subn)
 	}
 	fclose(opts_file);
 
+	subn_verify_conf_file(&p_subn->opt);
+
 	osm_parse_prefix_routes_file(p_subn);
 
 	return 0;
-- 
1.5.4.5

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to