We can now track fd independently of ->fd, so don't open
a file we don't have to use.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
td->total_io_size = td->io_size;
for_each_file(td, f, i) {
td->total_io_size = td->io_size;
for_each_file(td, f, i) {
- f->fd = dup(STDOUT_FILENO);
f->real_file_size = td->total_io_size / td->nr_files;
f->file_size = f->real_file_size;
}
f->real_file_size = td->total_io_size / td->nr_files;
f->file_size = f->real_file_size;
}
static int fio_null_open(struct thread_data fio_unused *td,
struct fio_file fio_unused *f)
{
static int fio_null_open(struct thread_data fio_unused *td,
struct fio_file fio_unused *f)
{