client: probe command support
[fio.git] / client.c
index 0a93be0c0a4b2f98fd3a3d64538e7147f6222897..b82c322c2e8dbf5feed42b364104c4f83080532c 100644 (file)
--- a/client.c
+++ b/client.c
@@ -366,6 +366,14 @@ static void handle_eta(struct fio_net_cmd *cmd)
        display_thread_status(je);
 }
 
+static void handle_probe(struct fio_net_cmd *cmd)
+{
+       struct cmd_probe_pdu *probe = (struct cmd_probe_pdu *) cmd->payload;
+
+       log_info("Probe: %s: %u.%u.%u\n", probe->hostname, probe->fio_major,
+                                       probe->fio_minor, probe->fio_patch);
+}
+
 static int handle_client(struct fio_client *client)
 {
        struct fio_net_cmd *cmd;
@@ -398,6 +406,10 @@ static int handle_client(struct fio_client *client)
                        handle_eta(cmd);
                        free(cmd);
                        break;
+               case FIO_NET_CMD_PROBE:
+                       handle_probe(cmd);
+                       free(cmd);
+                       break;
                default:
                        log_err("fio: unknown client op: %d\n", cmd->opcode);
                        free(cmd);