projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup generic_file_open()
[fio.git]
/
engines
/
net.c
diff --git
a/engines/net.c
b/engines/net.c
index 51bc671fc3a1ba23a0e60ce91f80cc375db0990d..2bbbb0ec78fee436bcdc00fd6b3eeef98fa218e9 100644
(file)
--- a/
engines/net.c
+++ b/
engines/net.c
@@
-111,7
+111,7
@@
static int fio_netio_accept(struct thread_data *td, struct fio_file *f)
struct pollfd pfd;
int ret;
struct pollfd pfd;
int ret;
-
fprintf(f_out,
"fio: waiting for connection\n");
+
log_info(
"fio: waiting for connection\n");
/*
* Accept loop. poll for incoming events, accept them. Repeat until we
/*
* Accept loop. poll for incoming events, accept them. Repeat until we
@@
-230,7
+230,7
@@
static int fio_netio_init(struct thread_data *td)
char *sep;
int ret;
char *sep;
int ret;
- if (!td->
total_file_
size) {
+ if (!td->
o.
size) {
log_err("fio: need size= set\n");
return 1;
}
log_err("fio: need size= set\n");
return 1;
}
@@
-240,11
+240,11
@@
static int fio_netio_init(struct thread_data *td)
return 1;
}
return 1;
}
- strcpy(buf, td->filename);
+ strcpy(buf, td->
o.
filename);
sep = strchr(buf, '/');
if (!sep) {
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->
o.
filename);
return 1;
}
return 1;
}
@@
-264,11
+264,11
@@
static int fio_netio_init(struct thread_data *td)
if (ret)
return ret;
if (ret)
return ret;
- td->io_size = td->
total_file_
size;
+ td->io_size = td->
o.
size;
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->file_size = td->
total_file_size / td->
nr_files;
+ f->file_size = td->
o.size / td->o.
nr_files;
f->real_file_size = f->file_size;
}
f->real_file_size = f->file_size;
}