files between threads in a job or several jobs, specify
a filename for each of them to override the default. If
the ioengine used is 'net', the filename is the host and
- port to connect to in the format of =host:port. If the
+ port to connect to in the format of =host/port. If the
ioengine is file based, you can specify a number of files
by seperating the names with a ':' colon. So if you wanted
a job to open /dev/sda and /dev/sdb as the two working files,
net Transfer over the network to given host:port.
'filename' must be set appropriately to
- filename=host:port regardless of send
+ filename=host/port regardless of send
or receive, if the latter only the port
argument is used.
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;
}
# Example network job, just defines two clients that send/recv data
[global]
ioengine=net
-filename=localhost:8888
+filename=localhost/8888
size=4k
size=10g
td->iodepth_batch = td->iodepth;
if (!td->nr_files)
- td->nr_files = td->open_files;
- else if (td->open_files > td->nr_files || !td->open_files)
+ td->nr_files = td->files_index;
+ else if (td->nr_files > td->files_index)
+ td->nr_files = td->files_index;
+
+ if (td->open_files > td->nr_files || !td->open_files)
td->open_files = td->nr_files;
}
struct thread_data *td = data;
char *fname, *str, *p;
- if (!td->filename)
- td->nr_files = 0;
-
p = str = strdup(input);
strip_blank_front(&str);
if (!strlen(fname))
break;
add_file(td, fname);
- td->nr_files++;
}
free(p);