Put the ->real_file_size handling into fio
[fio.git] / engines / net.c
index 66f1e607ed7f258e6b804ae4471fc23fa3e21c19..2b48b0abb56c41ab69e1ec50928664e91d478e21 100644 (file)
@@ -15,7 +15,6 @@
 #include <sys/poll.h>
 
 #include "../fio.h"
-#include "../os.h"
 
 struct netio_data {
        int listenfd;
@@ -270,8 +269,6 @@ static void fio_netio_cleanup(struct thread_data *td)
 static int fio_netio_setup(struct thread_data *td)
 {
        struct netio_data *nd;
-       struct fio_file *f;
-       unsigned int i;
 
        if (!td->io_ops->data) {
                nd = malloc(sizeof(*nd));;
@@ -279,9 +276,6 @@ static int fio_netio_setup(struct thread_data *td)
                memset(nd, 0, sizeof(*nd));
                nd->listenfd = -1;
                td->io_ops->data = nd;
-
-               for_each_file(td, f, i)
-                       f->real_file_size = -1ULL;
        }
 
        return 0;