[ofw] [PATCH] opensm: create all directories in database path

Smith, Stan stan.smith at intel.com
Thu Apr 21 09:31:25 PDT 2011


>so this hadn't been pushed for the previous change. Shouldn't these be
>in sync to make Windows port easier next time around ?

Yes - Uri submitted a patch to create a directory months ago...seems the patch fell by the wayside?
Uri's original patch plus Sean's enhancement should be in the opensm mainline.

stan.

>
>-- Hal
>
>> +       {
>> +               int ret;
>> +
>> +               /* Check if the directory exists. If not - create it. */
>> +               ret = SHCreateDirectoryEx(NULL, p_db_imp->db_dir_name, NULL);
>> +               if (ret != ERROR_SUCCESS && ret != ERROR_ALREADY_EXISTS &&
>> +                       ret != ERROR_FILE_EXISTS) {
>>                        OSM_LOG(p_log, OSM_LOG_ERROR, "ERR 0x%x: "
>>                                "Failed to create the db directory:%s\n",
>> -                               gle, p_db_imp->db_dir_name);
>> +                               ret, p_db_imp->db_dir_name);
>>                        OSM_LOG_EXIT(p_log);
>>                        return 1;
>>                }
>>
>> _______________________________________________
>> ofw mailing list
>> ofw at lists.openfabrics.org
>> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
>>


More information about the ofw mailing list