X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=client.h;h=5be84b60f638bb7f30a843c1b960b20a947a4ab9;hp=10d6ec36cac34f1de66e5cc0951cd191c9375e33;hb=9899aff3e34586d7024a360aafdd950e23610adc;hpb=d7213923067aa49922962a469a691c3ec951064d diff --git a/client.h b/client.h index 10d6ec36..5be84b60 100644 --- a/client.h +++ b/client.h @@ -20,6 +20,11 @@ enum { Client_exited = 5, }; +struct client_file { + char *file; + int remote; +}; + struct fio_client { struct flist_head list; struct flist_head hash_list; @@ -42,7 +47,6 @@ struct fio_client { int is_sock; int disk_stats_shown; unsigned int jobs; - unsigned int nr_stat; int error; int signal; int ipv6; @@ -64,8 +68,8 @@ struct fio_client { struct client_ops *ops; void *client_data; - char **ini_file; - unsigned int nr_ini_file; + struct client_file *files; + unsigned int nr_files; }; struct cmd_iolog_pdu; @@ -101,8 +105,8 @@ struct client_ops { extern struct client_ops fio_client_ops; struct client_eta { - struct jobs_eta eta; unsigned int pending; + struct jobs_eta eta; }; extern int fio_handle_client(struct fio_client *); @@ -119,13 +123,13 @@ extern int fio_client_connect(struct fio_client *); extern int fio_clients_connect(void); extern int fio_start_client(struct fio_client *); extern int fio_start_all_clients(void); -extern int fio_client_send_ini(struct fio_client *, const char *); extern int fio_clients_send_ini(const char *); +extern int fio_client_send_ini(struct fio_client *, const char *, int); extern int fio_handle_clients(struct client_ops *); extern int fio_client_add(struct client_ops *, const char *, void **); extern struct fio_client *fio_client_add_explicit(struct client_ops *, const char *, int, int); extern void fio_client_add_cmd_option(void *, const char *); -extern void fio_client_add_ini_file(void *, const char *); +extern int fio_client_add_ini_file(void *, const char *, int); extern int fio_client_terminate(struct fio_client *); extern void fio_clients_terminate(void); extern struct fio_client *fio_get_client(struct fio_client *);