fio: fix interaction between offset/size limited threads and "max_open_zones"
[fio.git] / os / os-windows.h
index 6d48ffe81819e9e6bd91476acc80c32525aa3b7a..fa2955f98659c84a539e26268bdb5a6673fb31ee 100644 (file)
@@ -203,7 +203,11 @@ static inline int fio_mkdir(const char *path, mode_t mode) {
        }
 
        if (CreateDirectoryA(path, NULL) == 0) {
-               log_err("CreateDirectoryA = %d\n", GetLastError());
+               /* Ignore errors if path is a device namespace */
+               if (strcmp(path, "\\\\.") == 0) {
+                       errno = EEXIST;
+                       return -1;
+               }
                errno = win_to_posix_error(GetLastError());
                return -1;
        }