Remember to account for existing files in size setup
[fio.git] / engines / net.c
index c2f45e5f1a870510af6ff09d18f0ccc355e5dbf6..f7e4f2d0b748725c0613868e461c2a071d73f018 100644 (file)
@@ -1,5 +1,8 @@
 /*
- * Transfer data over the net.
+ * net engine
+ *
+ * IO engine that reads/writes to/from sockets.
+ *
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -108,7 +111,7 @@ static int fio_netio_accept(struct thread_data *td, struct fio_file *f)
        struct pollfd pfd;
        int ret;
 
-       fprintf(f_out, "fio: waiting for connection\n");
+       log_info("fio: waiting for connection\n");
 
        /*
         * Accept loop. poll for incoming events, accept them. Repeat until we
@@ -239,9 +242,9 @@ static int fio_netio_init(struct thread_data *td)
 
        strcpy(buf, td->filename);
 
-       sep = strchr(buf, ':');
+       sep = strchr(buf, '/');
        if (!sep) {
-               log_err("fio: bad network host:port <<%s>>\n", td->filename);
+               log_err("fio: bad network host/port <<%s>>\n", td->filename);
                return 1;
        }