Signed-off-by: Ilya Nelkenbaum <[email protected]>
Reviewed-by: Hal Rosenstock <[email protected]>
---
diff --git a/opensm/osm_subnet.c b/opensm/osm_subnet.c
index 7dcde87..04c7b18 100644
--- a/opensm/osm_subnet.c
+++ b/opensm/osm_subnet.c
@@ -1315,6 +1315,17 @@ int osm_subn_verify_config(IN osm_subn_opt_t * p_opts)
        }
 #endif
 
+       if (p_opts->root_guid_file != NULL) {
+               FILE *root_file = fopen(p_opts->root_guid_file, "r");
+               if (!root_file) {
+                       log_report("Root guid file provided: %s doesn't 
exist.\n"
+                                   "Using default roots discovery algorithm\n",
+                                   p_opts->root_guid_file);
+                       p_opts->root_guid_file = NULL;
+               } else
+                       fclose(root_file);
+       }
+
        return 0;
 }
 
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to