summaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-10-07 20:56:28 -0600
committerJens Axboe <axboe@fb.com>2014-10-07 20:56:28 -0600
commit323255cc22693c927067a1bd5219c09b3ee4dd10 (patch)
treea3f3c53454ff1b7d17e77ed6b03b6ec24cd6d59a /client.h
parentc05da82c1a427ce535af0c1b3e7a795330cf5061 (diff)
downloadfio-323255cc22693c927067a1bd5219c09b3ee4dd10.tar.gz
fio-323255cc22693c927067a1bd5219c09b3ee4dd10.tar.bz2
Add support for --remote-config
This allows you to tell a fio server to open a local job file, as opposed to being passed one that the fio client opens and sends to it. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'client.h')
-rw-r--r--client.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/client.h b/client.h
index c8ff23ec..d632f468 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;
@@ -64,8 +69,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;
@@ -119,13 +124,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 *);