Put the ->real_file_size handling into fio
[fio.git] / engines / net.c
index 4de86c12831c758365fc674359da3b445faaedc4..2b48b0abb56c41ab69e1ec50928664e91d478e21 100644 (file)
@@ -269,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));;
@@ -278,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;