X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=client.h;h=5be84b60f638bb7f30a843c1b960b20a947a4ab9;hp=341d26069449a94f4b95ecaa69b0cb16e472ebed;hb=9899aff3e34586d7024a360aafdd950e23610adc;hpb=de26d51f3e909997c9a500bf9f15a1bd5c18bb49 diff --git a/client.h b/client.h index 341d2606..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; @@ -46,6 +51,7 @@ struct fio_client { int signal; int ipv6; int sent_job; + int did_stat; uint32_t type; uint32_t thread_number; @@ -62,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; @@ -99,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 *); @@ -117,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 *);