[ofw] [PATCH] opensm: create all directories in database path
Hal Rosenstock
hal.rosenstock at gmail.com
Thu Apr 21 10:32:20 PDT 2011
On Thu, Apr 21, 2011 at 12:31 PM, Smith, Stan <stan.smith at intel.com> wrote:
>>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?
to Linux (so cc'ing Alex) ?
> 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