We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent3ff6a37 commitfefe8b1Copy full SHA for fefe8b1
src/utils/file.c
@@ -697,7 +697,10 @@ int fio_mkdir(char const* path, int mode, fio_location location)
697
IO_CHECK(fio_write_all(fio_stdout,&hdr,sizeof(hdr)),sizeof(hdr));
698
IO_CHECK(fio_write_all(fio_stdout,path,path_len),path_len);
699
700
-return0;
+IO_CHECK(fio_read_all(fio_stdin,&hdr,sizeof(hdr)),sizeof(hdr));
701
+Assert(hdr.cop==FIO_MKDIR);
702
+
703
+returnhdr.arg;
704
}
705
else
706
{
@@ -1297,7 +1300,9 @@ void fio_communicate(int in, int out)
1297
1300
SYS_CHECK(remove(buf));
1298
1301
break;
1299
1302
caseFIO_MKDIR:/* Create direcory */
-SYS_CHECK(dir_create_dir(buf,hdr.arg));
1303
+hdr.size=0;
1304
+hdr.arg=dir_create_dir(buf,hdr.arg);
1305
+IO_CHECK(fio_write_all(out,&hdr,sizeof(hdr)),sizeof(hdr));
1306
1307
caseFIO_CHMOD:/* Change file mode */
1308
SYS_CHECK(chmod(buf,hdr.arg));