net: fix double setting of option category
[fio.git] / engines / falloc.c
index bc5ebd716e7a072916cb47b5cabdae756328bf6a..4654fe817aaeccbd4e70b20c060990c1562dd33e 100644 (file)
@@ -44,7 +44,7 @@ open_again:
        if (f->fd == -1) {
                char buf[FIO_VERROR_SIZE];
                int __e = errno;
-               snprintf(buf, sizeof(buf) - 1, "open(%s)", f->file_name);
+               snprintf(buf, sizeof(buf), "open(%s)", f->file_name);
                td_verror(td, __e, buf);
        }
 
@@ -89,9 +89,6 @@ static int fio_fallocate_queue(struct thread_data *td, struct io_u *io_u)
        if (ret)
                io_u->error = errno;
 
-       if (io_u->file && ret == 0 && ddir_rw(io_u->ddir))
-               io_u->file->file_pos = io_u->offset + ret;
-
        return FIO_Q_COMPLETED;
 }