server: error handling and probe command
[fio.git] / server.h
index 61b61f35d4df1f9b4153ac6bb53829916206d7d8..4783238ba7e77c1b77e668bd60385948224db1bc 100644 (file)
--- a/server.h
+++ b/server.h
@@ -34,12 +34,11 @@ enum {
        FIO_NET_CMD_QUIT        = 1,
        FIO_NET_CMD_EXIT        = 2,
        FIO_NET_CMD_JOB         = 3,
        FIO_NET_CMD_QUIT        = 1,
        FIO_NET_CMD_EXIT        = 2,
        FIO_NET_CMD_JOB         = 3,
-       FIO_NET_CMD_ACK         = 4,
-       FIO_NET_CMD_NAK         = 5,
-       FIO_NET_CMD_TEXT        = 6,
-       FIO_NET_CMD_TS          = 7,
-       FIO_NET_CMD_GS          = 8,
-       FIO_NET_CMD_ETA         = 9,
+       FIO_NET_CMD_TEXT        = 4,
+       FIO_NET_CMD_TS          = 5,
+       FIO_NET_CMD_GS          = 6,
+       FIO_NET_CMD_ETA         = 7,
+       FIO_NET_CMD_PROBE       = 8,
 
        FIO_NET_CMD_F_MORE      = 1UL << 0,
 
 
        FIO_NET_CMD_F_MORE      = 1UL << 0,
 
@@ -53,6 +52,13 @@ struct cmd_ts_pdu {
        struct group_run_stats rs;
 };
 
        struct group_run_stats rs;
 };
 
+struct cmd_probe_pdu {
+       uint8_t hostname[64];
+       uint8_t fio_major;
+       uint8_t fio_minor;
+       uint8_t fio_patch;
+};
+
 extern int fio_start_server(int);
 extern int fio_server_text_output(const char *, unsigned int len);
 extern int fio_server_log(const char *format, ...);
 extern int fio_start_server(int);
 extern int fio_server_text_output(const char *, unsigned int len);
 extern int fio_server_log(const char *format, ...);