瀏覽代碼

Create directory if not exists when plugging HDF5 disk

Corentin Salingue 7 年之前
父節點
當前提交
8354b0abfe
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/core/disk_ops/disk_hdf5.c

+ 1 - 0
src/core/disk_ops/disk_hdf5.c

@@ -421,6 +421,7 @@ static void *starpu_hdf5_plug(void *parameter, starpu_ssize_t size STARPU_ATTRIB
         {
                 /* The file doesn't exist or the directory exists => create the datafile */
                 int id;
+		_starpu_mkpath(parameter, S_IRWXU);
                 fileBase->path = _starpu_mktemp_many(parameter, 0, O_RDWR | O_BINARY, &id);
                 if (!fileBase->path)
                 {