summaryrefslogtreecommitdiff
path: root/server.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-03-14 11:31:21 +0100
committerJens Axboe <axboe@kernel.dk>2012-03-14 11:31:21 +0100
commit46bcd498f7b3fb55f7f048bf299f36bd8c8f7db1 (patch)
treee3e90eadf712bee418749a95aac56fe6a055f581 /server.h
parent35c0ba7ff55bbd438cdc171945c61d501a4e693e (diff)
downloadfio-46bcd498f7b3fb55f7f048bf299f36bd8c8f7db1.tar.gz
client/server: pass type of client to the backend
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'server.h')
-rw-r--r--server.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/server.h b/server.h
index 7a801bf0..2235f3a5 100644
--- a/server.h
+++ b/server.h
@@ -38,7 +38,7 @@ struct fio_net_int_cmd {
};
enum {
- FIO_SERVER_VER = 10,
+ FIO_SERVER_VER = 11,
FIO_SERVER_MAX_FRAGMENT_PDU = 1024,
@@ -97,9 +97,16 @@ struct cmd_single_line_pdu {
struct cmd_line_pdu {
uint16_t lines;
+ uint16_t client_type;
struct cmd_single_line_pdu options[0];
};
+struct cmd_job_pdu {
+ uint32_t buf_len;
+ uint32_t client_type;
+ uint8_t buf[0];
+};
+
struct cmd_start_pdu {
uint32_t jobs;
};